traefik/examples/k8s/traefik-deployment.yaml

52 lines
1,004 B
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: Deployment
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:
replicas: 1
selector:
matchLabels:
k8s-app: traefik-ingress-lb
2016-05-06 10:34:30 +00:00
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
containers:
- image: traefik
2016-05-06 10:34:30 +00:00
name: traefik-ingress-lb
args:
2018-03-12 09:40:04 +00:00
- --api
2016-05-06 10:34:30 +00:00
- --kubernetes
- --logLevel=INFO
---
kind: Service
apiVersion: v1
metadata:
name: traefik-ingress-service
2017-08-03 08:25:05 +00:00
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- protocol: TCP
port: 80
name: web
- protocol: TCP
port: 8080
name: admin
type: NodePort