-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui-deployment.yaml
71 lines (71 loc) · 1.85 KB
/
ui-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
61
62
63
64
65
66
67
68
69
70
71
apiVersion: apps/v1
kind: Deployment
metadata:
name: ui
namespace: production
spec:
selector:
matchLabels:
app: ui
replicas: 2
template:
metadata:
labels:
app: ui
spec:
containers:
- name: ui
image: envirodgi/ui:042b8ebe472e0f4c2b07f74870b794ed855fbceb
imagePullPolicy: Always
ports:
- containerPort: 3001
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "500m"
readinessProbe:
tcpSocket:
port: 3001
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 3001
initialDelaySeconds: 5
env:
- name: FORCE_SSL
value: "true"
- name: GOOGLE_DICTIONARY_SHEET_ID
valueFrom:
secretKeyRef:
name: ui-secrets
key: google_dictionary_sheet_id
- name: GOOGLE_IMPORTANT_CHANGE_SHEET_ID
valueFrom:
secretKeyRef:
name: ui-secrets
key: google_important_change_sheet_id
- name: GOOGLE_SERVICE_CLIENT_EMAIL
valueFrom:
secretKeyRef:
name: ui-secrets
key: google_service_client_email
- name: GOOGLE_SHEETS_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: ui-secrets
key: google_sheets_private_key
- name: GOOGLE_TASK_SHEET_ID
valueFrom:
secretKeyRef:
name: ui-secrets
key: google_task_sheet_id
- name: WEB_MONITORING_DB_URL
value: "https://api.monitoring.envirodatagov.org/"
- name: ALLOW_PUBLIC_VIEW
value: 'true'
- name: INCREMENTAL_UPDATE
value: "1"