fix helm celery healthcheck

This commit is contained in:
Juris Pavļučenkovs 2022-10-05 11:11:08 +03:00
parent e695093c6c
commit b6092f6d5c
No known key found for this signature in database
GPG key ID: 0EA25AE273F830F3
2 changed files with 11 additions and 4 deletions

View file

@ -47,16 +47,18 @@ spec:
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 }}
{{- end }}
{{- if .Values.celery.livenessProbe.enabled }}
livenessProbe:
exec:
command: [
"bash",
"-c",
"celery inspect ping -A engine -d celery@$HOSTNAME"
"celery -A engine inspect ping -d celery@$HOSTNAME"
]
initialDelaySeconds: 30
periodSeconds: 300
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.celery.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.celery.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.celery.livenessProbe.timeoutSeconds }}
{{- end }}
resources:
{{- toYaml .Values.celery.resources | nindent 12 }}
{{- end}}

View file

@ -44,6 +44,11 @@ engine:
# Celery workers pods configuration
celery:
replicaCount: 1
livenessProbe:
enabled: false
initialDelaySeconds: 30
periodSeconds: 300
timeoutSeconds: 10
resources: {}
# limits:
# cpu: 100m