-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.deployment.yaml
62 lines (62 loc) · 1.68 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ./worker.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: kube-deploy-worker
labels:
services: "worker"
spec:
selector:
matchLabels:
services: "worker"
template:
metadata:
labels:
services: "worker"
spec:
restartPolicy: Always
containers:
- name: "t-dop-600-worker-1"
image: "epitechcontent/t-dop-600-worker:k8s"
resources:
limits:
memory: 256M
envFrom:
- configMapRef:
name: kube-config-redis
- configMapRef:
name: kube-config-postgres
- secretRef:
name: kube-secret-postgres
# env:
# - name: "REDIS_HOST"
# valueFrom:
# configMapKeyRef:
# key: "REDIS_HOST"
# name: "kube-config-poll"
# - name: "POSTGRES_HOST"
# valueFrom:
# configMapKeyRef:
# key: "POSTGRES_HOST"
# name: "kube-config-postgres"
# - name: "POSTGRES_PORT"
# valueFrom:
# configMapKeyRef:
# key: "POSTGRES_PORT"
# name: "kube-config-postgres"
# - name: "POSTGRES_DB"
# valueFrom:
# configMapKeyRef:
# key: "POSTGRES_DB"
# name: "kube-config-postgres"
# - name: "POSTGRES_USER"
# valueFrom:
# secretKeyRef:
# key: "POSTGRES_USER"
# name: "kube-secret-postgres"
# - name: "POSTGRES_PASSWORD"
# valueFrom:
# secretKeyRef:
# key: "POSTGRES_PASSWORD"
# name: "kube-secret-postgres"