kubernetes-handbook/manifests/traefik-ingress/traefik.yaml

42 lines
919 B
YAML
Raw Normal View History

2017-04-20 22:21:38 +08:00
apiVersion: extensions/v1beta1
2017-05-09 12:52:45 +08:00
kind: DaemonSet
2017-04-20 22:21:38 +08:00
metadata:
name: traefik-ingress-lb
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
terminationGracePeriodSeconds: 60
hostNetwork: true
restartPolicy: Always
serviceAccountName: ingress
containers:
- image: traefik
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: 8580
hostPort: 8580
args:
- --web
- --web.address=:8580
- --kubernetes
2017-05-09 12:52:45 +08:00
nodeSelector:
edgenode: "true"