-
Notifications
You must be signed in to change notification settings - Fork 0
/
cms.yaml
76 lines (76 loc) · 1.93 KB
/
cms.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
71
72
73
74
75
76
apiVersion: apps/v1
kind: Deployment
metadata:
name: cms
labels:
deployment: cms
spec:
replicas: 1
selector:
matchLabels:
app: cms
template:
metadata:
labels:
app: cms
spec:
containers:
- name: cms
image: registry.digitalocean.com/example-registry/cms:latest
volumeMounts:
- name: config-volume
mountPath: /periodtracker/config
env:
- name: NODE_ENV
value: 'production'
- name: DATABASE_TYPE
value: 'postgres'
- name: DATABASE_SYNCHRONIZE
value: 'false'
- name: DATABASE_LOGGING
value: 'false'
- name: DATABASE_HOST
value: database_host_ip_address
- name: DATABASE_PORT
value: '5432'
- name: DATABASE_NAME
value: database_schema
- name: DATABASE_SCHEMA
value: database_schema
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
name: postgres-credentials
key: user
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-credentials
key: password
- name: PASSPORT_SECRET
valueFrom:
secretKeyRef:
name: passport
key: secret
- name: GOOGLE_APPLICATION_CREDENTIALS
value: '/periodtracker/config/firebase-config.json'
volumes:
- name: config-volume
configMap:
name: firebase-config
items:
- key: firebase.conf
path: 'firebase-config.json'
---
kind: Service
apiVersion: v1
metadata:
name: cms
spec:
type: ClusterIP
selector:
app: cms
ports:
- protocol: TCP
port: 5000
targetPort: 5000