-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.deployment.yaml
42 lines (42 loc) · 1.01 KB
/
worker.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker
namespace: default
labels:
app: worker
spec:
replicas: 1
selector:
matchLabels:
app: worker
template:
metadata:
labels:
app: worker
spec:
restartPolicy: Always
containers:
- name: worker
image: epitechcontent/t-dop-600-worker:k8s
resources:
limits:
memory: "256M"
envFrom:
- configMapRef:
name: postgres-configmap
- configMapRef:
name: redis-configmap
- secretRef:
name: postgres-secret
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- pool-dop-ykf46
- pool-dop-ykf4t
topologyKey: "kubernetes.io/hostname"