-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.deployment.yaml
44 lines (43 loc) · 1.07 KB
/
traefik.deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: traefik
namespace: kube-public
labels:
app: traefik
spec:
replicas: 2
selector:
matchLabels:
app: traefik
template:
metadata:
labels:
app: traefik
spec:
restartPolicy: Always
serviceAccountName: traefik-ingress-controller
containers:
- name: traefik
image: traefik:v2.7
args:
- --api.insecure
- --entrypoints.web.address=:80
- --providers.kubernetesingress=true
- --log.level=DEBUG
ports:
- name: web
containerPort: 80
- name: dashboard
containerPort: 8080
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- pool-dop-ykf46
- pool-dop-ykf4t
topologyKey: "kubernetes.io/hostname"