-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.deployment.yaml
40 lines (40 loc) · 985 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kube-public
name: traefik
spec:
replicas: 2
selector:
matchLabels:
app: traefik
template:
metadata:
labels:
app: traefik
spec:
serviceAccountName: traefik-ingress-controller
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- epitech-s4ql
- epitech-s4qe
topologyKey: "kubernetes.io/hostname"
containers:
- name: traefik
image: traefik:2.7
args:
- --api.insecure=true
- --providers.kubernetesingress
- --entrypoints.web.address=:80
- --entrypoints.dashboard.address=:8080
ports:
- name: web
containerPort: 80
- name: dashboard
containerPort: 8080