-
Notifications
You must be signed in to change notification settings - Fork 0
/
20-deployment.yaml
70 lines (69 loc) · 1.78 KB
/
20-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
63
64
65
66
67
68
69
70
apiVersion: apps/v1
kind: Deployment
metadata:
name: webservice
labels:
role: webservice
exercise: k8s-skill-lvl-3
spec:
replicas: 2
selector:
matchLabels:
role: webservice
exercise: k8s-skill-lvl-3
template:
metadata:
labels:
role: webservice
exercise: k8s-skill-lvl-3
spec:
containers:
- name: webservice
image: molivia9s/k8s-sl3-webservice:latest
imagePullPolicy: Always
env:
- name: RABBITMQ_USER
valueFrom:
secretKeyRef:
name: rabbitmq-credentials
key: RABBITMQ_USER
- name: RABBITMQ_PASSWORD
valueFrom:
secretKeyRef:
name: rabbitmq-credentials
key: RABBITMQ_PASSWORD
- name: RABBITMQ_QUEUE
valueFrom:
secretKeyRef:
name: rabbitmq-credentials
key: RABBITMQ_QUEUE
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: pg-credentials
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: pg-credentials
key: POSTGRES_PASSWORD
- name: AWS_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_ACCESS_KEY
- name: AWS_SECRET_KEY
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_SECRET_KEY
- name: AWS_REGION
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_REGION
- name: S3_BUCKET
valueFrom:
secretKeyRef:
name: aws-credentials
key: S3_BUCKET