-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtraefik.deployment.yaml
51 lines (51 loc) · 1.06 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
45
46
47
48
49
50
51
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-service-account
namespace: kube-public
labels:
app: traefik
---
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-service-account
containers:
- name: traefik
image: traefik:1.7
ports:
- name: http
containerPort: 80
- name: admin
containerPort: 8080
args:
- --api
- --kubernetes
- --logLevel=INFO
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- epitech-s4ql
- epitech-s4qe
topologyKey: "kubernetes.io/hostname"