-
Notifications
You must be signed in to change notification settings - Fork 0
/
20-deployment.yaml
60 lines (59 loc) · 1.48 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: imageblur
labels:
role: imageblur
exercise: k8s-skill-lvl-3
spec:
replicas: 2
selector:
matchLabels:
role: imageblur
exercise: k8s-skill-lvl-3
template:
metadata:
labels:
role: imageblur
exercise: k8s-skill-lvl-3
spec:
containers:
- name: imageblur
image: molivia9s/k8s-sl3-imageblur: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: 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