traefik/examples/k8s/traefik.yaml

48 lines
1 KiB
YAML
Raw Normal View History

---
2016-05-06 10:34:30 +00:00
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: DaemonSet
2016-05-06 10:34:30 +00:00
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
serviceAccountName: traefik-ingress-controller
2016-05-06 10:34:30 +00:00
terminationGracePeriodSeconds: 60
hostNetwork: true
2016-05-06 10:34:30 +00:00
containers:
- image: traefik
2016-05-06 10:34:30 +00:00
name: traefik-ingress-lb
resources:
limits:
cpu: 200m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi
ports:
- name: http
containerPort: 80
hostPort: 80
- name: admin
containerPort: 8081
securityContext:
privileged: true
2016-05-06 10:34:30 +00:00
args:
- -d
2016-05-06 10:34:30 +00:00
- --web
- --web.address=:8081
2016-05-06 10:34:30 +00:00
- --kubernetes