-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvalues.yaml
More file actions
208 lines (201 loc) · 5.16 KB
/
Copy pathvalues.yaml
File metadata and controls
208 lines (201 loc) · 5.16 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
global:
pgSecretName: pg-app
backend:
~chart: app
~needs: [backend-cron]
imagePackage: backend
host: "api-{{ .Values.global.host }}"
probesPath: /healthz
containerPort: 3000
resources:
requests:
cpu: 1
memory: 1Gi
limits: # exports need a lot of CPU/RAM ATM
cpu: 3
memory: 3Gi
startupProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 30
failureThreshold: 50
periodSeconds: 10
livenessProbe:
failureThreshold: 20
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
envFrom:
- secretRef:
name: "{{ .Values.global.pgSecretName }}"
- secretRef:
name: backend-sealed-secret
- configMapRef:
name: backend-configmap
vars: &backendVars
TZ: Europe/Paris
POSTGRES_HOST: "$(PGHOST)"
POSTGRES_USERNAME: "$(PGUSER)"
POSTGRES_PASSWORD: "$(PGPASSWORD)"
POSTGRES_DATABASE: "$(PGDATABASE)"
POSTGRES_PORT: "$(PGPORT)"
DOMIFA_BACKEND_URL: "https://api-{{ .Values.global.host }}/"
DOMIFA_FRONTEND_URL: "https://{{ .Values.global.host }}/"
DOMIFA_PORTAIL_USAGERS_URL: "https://mon-{{ .Values.global.host }}/"
DOMIFA_PORTAIL_ADMINS_URL: "https://admin-{{ .Values.global.host }}/"
DOMIFA_CRON_ENABLED: "false"
securityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
backend-export:
# duplicate keys
~chart: app
~needs: [backend-cron]
imagePackage: backend
host: "api-{{ .Values.global.host }}"
probesPath: /healthz
containerPort: 3000
ingress:
paths:
- /export
- /stats
- /stats/home
- /admin/structures/export
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 64m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
nginx.ingress.kubernetes.io/proxy-keepalive-requests: "100"
nginx.ingress.kubernetes.io/proxy-keepalive-timeout: "600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
resources:
requests:
cpu: 0.3
memory: 512Mi
limits: # exports need a lot of CPU/RAM ATM
cpu: 3
memory: 3Gi
startupProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 30
failureThreshold: 50
periodSeconds: 10
livenessProbe:
failureThreshold: 20
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
envFrom:
- secretRef:
name: "{{ .Values.global.pgSecretName }}"
- secretRef:
name: backend-sealed-secret
- configMapRef:
name: backend-configmap
vars: &backendVars
TZ: Europe/Paris
POSTGRES_HOST: "$(PGHOST)"
POSTGRES_USERNAME: "$(PGUSER)"
POSTGRES_PASSWORD: "$(PGPASSWORD)"
POSTGRES_DATABASE: "$(PGDATABASE)"
POSTGRES_PORT: "$(PGPORT)"
DOMIFA_BACKEND_URL: "https://api-{{ .Values.global.host }}/"
DOMIFA_FRONTEND_URL: "https://{{ .Values.global.host }}/"
DOMIFA_PORTAIL_USAGERS_URL: "https://mon-{{ .Values.global.host }}/"
DOMIFA_PORTAIL_ADMINS_URL: "https://admin-{{ .Values.global.host }}/"
DOMIFA_CRON_ENABLED: "false"
securityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
backend-cron:
~chart: app
imagePackage: backend
.ingress.enabled: false
probesPath: /healthz
containerPort: 3000
resources:
requests:
cpu: 0.2
memory: 256Mi
limits:
cpu: 1.5
memory: 2Gi
startupProbe:
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 30
failureThreshold: 100
periodSeconds: 60
envFrom:
- secretRef:
name: "{{ .Values.global.pgSecretName }}"
- secretRef:
name: backend-sealed-secret
- configMapRef:
name: backend-configmap
vars:
<<: *backendVars
DOMIFA_CRON_ENABLED: "true"
DOMIFA_SENTRY_ENABLED: "true"
DOMIFA_SENTRY_DEBUG_MODE_ENABLED: "false"
securityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
frontend:
~chart: app
imagePackage: frontend
host: "{{ .Values.global.host }}"
containerPort: 8080
# Security headers are now set by the app's nginx (packages/frontend/nginx.conf)
# so they no longer depend on the ingress controller's custom-headers support.
resources:
requests:
cpu: 0.2
memory: 256Mi
limits:
cpu: 1
memory: 1Gi
securityContext:
fsGroup: 101
runAsUser: 101
runAsGroup: 101
portail-admins:
~chart: app
imagePackage: portail-admins
host: "admin-{{ .Values.global.host }}"
# Security headers are now set by the app's nginx (packages/portail-admins/nginx.conf).
containerPort: 8080
securityContext:
fsGroup: 101
runAsUser: 101
runAsGroup: 101
portail-usagers:
~chart: app
imagePackage: portail-usagers
host: "mon-{{ .Values.global.host }}"
# Security headers are now set by the app's nginx (packages/portail-usagers/nginx.conf).
containerPort: 8080
securityContext:
fsGroup: 101
runAsUser: 101
runAsGroup: 101