@leverege/build-tools 1.12.7 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/helmify +12 -4
- package/package.json +1 -1
- package/src/helmify +12 -4
package/lib/server/helmify
CHANGED
|
@@ -204,6 +204,14 @@ spec:
|
|
|
204
204
|
path: /
|
|
205
205
|
port: node-metrics
|
|
206
206
|
initialDelaySeconds: 10
|
|
207
|
+
{{- if (.Values.$chartname_go.LIVENESS_PROBE) and eq .Values.$chartname_go.LIVENESS_PROBE "true" }}
|
|
208
|
+
livenessProbe:
|
|
209
|
+
httpGet:
|
|
210
|
+
path: /livenessProbe
|
|
211
|
+
port: api
|
|
212
|
+
initialDelaySeconds: 15
|
|
213
|
+
periodSeconds: 60
|
|
214
|
+
{{- end }}
|
|
207
215
|
resources:
|
|
208
216
|
requests:
|
|
209
217
|
cpu: "50m"
|
|
@@ -220,11 +228,11 @@ spec:
|
|
|
220
228
|
containerPort: 5111
|
|
221
229
|
volumeMounts:
|
|
222
230
|
- name: model-firebase-key
|
|
223
|
-
mountPath: {{
|
|
231
|
+
mountPath: {{ .Values.default.MODEL_FIREBASE_SERVICE_ACCOUNT | quote }}
|
|
224
232
|
- name: tmpfs
|
|
225
233
|
mountPath: "/tmp"
|
|
226
234
|
- name: pubsub-key
|
|
227
|
-
mountPath: {{
|
|
235
|
+
mountPath: {{ .Values.default.PUBSUB_SERVICE_ACCOUNT | quote }}
|
|
228
236
|
env:
|
|
229
237
|
- name: NODE_ENV
|
|
230
238
|
value: {{ .Values.default.NODE_ENVIRONMENT }}
|
|
@@ -237,11 +245,11 @@ spec:
|
|
|
237
245
|
- name: LOG_CONFIG
|
|
238
246
|
value: {{ required "Log config required" .Values.default.LOG_CONFIG | quote }}
|
|
239
247
|
- name: MAX_CHILD_PROCESSES
|
|
240
|
-
value: {{
|
|
248
|
+
value: {{ .Values.default.MAX_CHILD_PROCESSES | default 1 | quote }}
|
|
241
249
|
- name: MODEL_FIREBASE_SERVICE_ACCOUNT
|
|
242
250
|
value: {{ .Values.default.MODEL_FIREBASE_SERVICE_ACCOUNT }}/{{ .Values.default.SECRET_KEY }}
|
|
243
251
|
- name: MODEL_FIREBASE_DATABASE_URL
|
|
244
|
-
value: {{
|
|
252
|
+
value: {{ .Values.default.MODEL_FIREBASE_DATABASE_URL | quote }}
|
|
245
253
|
DEPLOYMENT_YAML
|
|
246
254
|
|
|
247
255
|
read -p "Does your server need an open port to the Internet (i.e. ingress or service)? [Y or N] " -n 1 -r
|
package/package.json
CHANGED
package/src/helmify
CHANGED
|
@@ -204,6 +204,14 @@ spec:
|
|
|
204
204
|
path: /
|
|
205
205
|
port: node-metrics
|
|
206
206
|
initialDelaySeconds: 10
|
|
207
|
+
{{- if (.Values.$chartname_go.LIVENESS_PROBE) and eq .Values.$chartname_go.LIVENESS_PROBE "true" }}
|
|
208
|
+
livenessProbe:
|
|
209
|
+
httpGet:
|
|
210
|
+
path: /livenessProbe
|
|
211
|
+
port: api
|
|
212
|
+
initialDelaySeconds: 15
|
|
213
|
+
periodSeconds: 60
|
|
214
|
+
{{- end }}
|
|
207
215
|
resources:
|
|
208
216
|
requests:
|
|
209
217
|
cpu: "50m"
|
|
@@ -220,11 +228,11 @@ spec:
|
|
|
220
228
|
containerPort: 5111
|
|
221
229
|
volumeMounts:
|
|
222
230
|
- name: model-firebase-key
|
|
223
|
-
mountPath: {{
|
|
231
|
+
mountPath: {{ .Values.default.MODEL_FIREBASE_SERVICE_ACCOUNT | quote }}
|
|
224
232
|
- name: tmpfs
|
|
225
233
|
mountPath: "/tmp"
|
|
226
234
|
- name: pubsub-key
|
|
227
|
-
mountPath: {{
|
|
235
|
+
mountPath: {{ .Values.default.PUBSUB_SERVICE_ACCOUNT | quote }}
|
|
228
236
|
env:
|
|
229
237
|
- name: NODE_ENV
|
|
230
238
|
value: {{ .Values.default.NODE_ENVIRONMENT }}
|
|
@@ -237,11 +245,11 @@ spec:
|
|
|
237
245
|
- name: LOG_CONFIG
|
|
238
246
|
value: {{ required "Log config required" .Values.default.LOG_CONFIG | quote }}
|
|
239
247
|
- name: MAX_CHILD_PROCESSES
|
|
240
|
-
value: {{
|
|
248
|
+
value: {{ .Values.default.MAX_CHILD_PROCESSES | default 1 | quote }}
|
|
241
249
|
- name: MODEL_FIREBASE_SERVICE_ACCOUNT
|
|
242
250
|
value: {{ .Values.default.MODEL_FIREBASE_SERVICE_ACCOUNT }}/{{ .Values.default.SECRET_KEY }}
|
|
243
251
|
- name: MODEL_FIREBASE_DATABASE_URL
|
|
244
|
-
value: {{
|
|
252
|
+
value: {{ .Values.default.MODEL_FIREBASE_DATABASE_URL | quote }}
|
|
245
253
|
DEPLOYMENT_YAML
|
|
246
254
|
|
|
247
255
|
read -p "Does your server need an open port to the Internet (i.e. ingress or service)? [Y or N] " -n 1 -r
|