24fb3db8 by Adam Heath

Add an easy way to configure the health probes(all 3 are default

enabled, and call /status, which isn't totally working).
1 parent 7e1dd3be
......@@ -175,3 +175,11 @@ spec:
{{- end }}
{{- end }}
{{ define "moqui.health-probe" }}
{{- $name := index . 0 }}
{{- $probe := index . 1 }}
{{- if $probe.enabled }}
{{ $name }}:{{ $probe.probe | toYaml | nindent 2 }}
{{- end }}
{{- end }}
......
......@@ -135,20 +135,9 @@ spec:
- name: http-moqui
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /status
port: http-moqui
readinessProbe:
httpGet:
path: /status
port: http-moqui
startupProbe:
httpGet:
path: /status
port: http-moqui
periodSeconds: 10
failureThreshold: 3
{{ include "moqui.health-probe" (list "livenessProbe" .Values.health.liveness) | nindent 10 }}
{{ include "moqui.health-probe" (list "readinessProbe" .Values.health.readiness) | nindent 10 }}
{{ include "moqui.health-probe" (list "startupProbe" .Values.health.startup) | nindent 10 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
......
......@@ -49,6 +49,28 @@ persistence:
storage: 8Gi
annotations: {}
health:
liveness:
enabled: true
probe:
httpGet:
path: /status
port: http-moqui
readiness:
enabled: true
probe:
httpGet:
path: /status
port: http-moqui
startup:
enabled: true
probe:
httpGet:
path: /status
port: http-moqui
periodSeconds: 10
failureThreshold: 3
secret:
entity_ds_password: "iuqom"
......