forked from lukaszbudnik/migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmigrator-deployment.yaml
49 lines (49 loc) · 1.18 KB
/
migrator-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: migrator
labels:
app: migrator
spec:
selector:
matchLabels:
app: migrator
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: migrator
tier: frontend
spec:
serviceAccountName: migrator-serviceaccount
containers:
- image: XXX.dkr.ecr.XXX.amazonaws.com/migrator:v2020.1.0
name: migrator
env:
- name: AWS_REGION
value: XXX
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
name: database-credentials-bd8htk2bk7
key: username
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: database-credentials-bd8htk2bk7
key: password
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: database-credentials-bd8htk2bk7
key: database
- name: DATABASE_HOST
valueFrom:
secretKeyRef:
name: database-credentials-bd8htk2bk7
key: host
ports:
- containerPort: 8080
name: migrator