Add optional celery liveness check
This commit is contained in:
parent
01748f59da
commit
ab1ff087d2
|
@ -41,6 +41,14 @@ spec:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
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:
|
resources:
|
||||||
{{- toYaml .Values.worker.resources | nindent 12 }}
|
{{- toYaml .Values.worker.resources | nindent 12 }}
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -97,6 +97,13 @@ worker:
|
||||||
maxReplicas: 100
|
maxReplicas: 100
|
||||||
targetCPUUtilizationPercentage: 90
|
targetCPUUtilizationPercentage: 90
|
||||||
# targetMemoryUtilizationPercentage: 80
|
# targetMemoryUtilizationPercentage: 80
|
||||||
|
livenessProbe:
|
||||||
|
enabled: false
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 300
|
||||||
|
timeoutSeconds: 30
|
||||||
|
command:
|
||||||
|
- "celery -A django inspect ping -d celery@$HOSTNAME"
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 900m
|
cpu: 900m
|
||||||
|
|
Loading…
Reference in a new issue