Skip to content

Instantly share code, notes, and snippets.

@trondhindenes
Created April 29, 2018 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trondhindenes/a260744ed4178800534ed0ddfff04244 to your computer and use it in GitHub Desktop.
Save trondhindenes/a260744ed4178800534ed0ddfff04244 to your computer and use it in GitHub Desktop.
traefik_daemonset_example
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: traefik-ingress-controller-internal-httpsecure-{{ environment }}
namespace: networking
labels:
app: traefik-ingress-lb-internal-httpsecure
environment: "{{ environment }}"
environmentid: "{{ environmentid }}"
majorversion: "{{ major_version }}"
spec:
minReadySeconds: 60
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
template:
metadata:
labels:
name: traefik-ingress-lb-internal-httpsecure-{{ environment }}
spec:
serviceAccountName: traefik-ingress-controller-{{ environment }}
terminationGracePeriodSeconds: 60
imagePullSecrets:
- name: ecr
containers:
- image: "{{ docker_image }}:{{ version }}"
name: traefik-ingress-lb-internal-httpsecure
imagePullPolicy: "Always"
env:
- name: TRAEFIK_LABEL_SELECTOR
value: 'expose=internal-httpsecure'
ports:
- name: httpsecure
containerPort: 80
hostPort: 10001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment