-
Notifications
You must be signed in to change notification settings - Fork 0
/
parliament-infection-deploy.yaml
38 lines (38 loc) · 1.36 KB
/
parliament-infection-deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: parliament-notification # name of the deployment
labels: # these labels apply to the deployment
app: parliament-notification
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: parliament-notification
template:
metadata:
labels: # these labels apply to our container
app: parliament-notification
spec:
containers:
- name: parliament-notification # name of our container
image: 774458662053.dkr.ecr.us-east-2.amazonaws.com/parliament-notification:latest # the URI that we got from ECR
env:
- name: DB_URL
value: notification-database-1.cczohqa4fo3d.us-east-2.rds.amazonaws.com
# URL of our database endpoint
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: db-creds
key: username # use the encoded username from the K8s secret db-creds
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-creds
key: password # use the encoded password from the K8s secret db-creds
- name: DB_NAME
value: notification_db # our DB is named backend
ports:
- containerPort: 3000 # expose the running contianer on port 3000