-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
46 lines (46 loc) · 1.25 KB
/
deployment.yml
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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: urturn-deployment
spec:
replicas: 1
selector:
matchLabels:
app: urturn
template:
metadata:
labels:
app: urturn
spec:
containers:
- name: urturn-app
image: gcr.io/urturn-1/urturn-image:latest
ports:
- containerPort: 3000
env:
- name: NODE_PORT
value: "3000"
- name: MONGODB_DBNAME
value: prod
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /opt/firebase-admin-sdk-creds/urturn-1-firebase-adminsdk-uf0mj-7d0a516f7e.json
- name: WS_CLIENT_TIMEOUT
value: "3000"
- name: FIREBASE_DATABASE_URL
valueFrom:
secretKeyRef:
name: firebase-prod-url
key: firebase-prod-url
- name: MONGODB_CONNECT_STRING
valueFrom:
secretKeyRef:
name: mongo-prod-url
key: mongo-prod-url
volumeMounts:
- name: firebase-admin-sdk-creds
mountPath: "/opt/firebase-admin-sdk-creds"
readOnly: true
volumes:
- name: firebase-admin-sdk-creds
secret:
secretName: firebase-admin-sdk-creds-json