Allow more configuration of celery liveness probe

This commit is contained in:
David Burke 2023-05-19 10:40:39 -04:00
parent 466648631f
commit 3099e678fc
2 changed files with 11 additions and 13 deletions

View file

@ -41,13 +41,9 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.worker.livenessProbe.enabled }}
{{- if .Values.worker.livenessProbe }}
livenessProbe:
initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds }}
exec:
command: {{- toYaml .Values.worker.livenessProbe.command | nindent 14 }}
{{- .Values.worker.livenessProbe | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.worker.resources | nindent 12 }}