Add optional celery liveness check

This commit is contained in:
David Burke 2023-04-20 20:34:16 -04:00
parent 01748f59da
commit ab1ff087d2
2 changed files with 15 additions and 0 deletions

View file

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