Skip to content

Commit

Permalink
addingg liveness and readiness probe for celery
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Apr 25, 2021
1 parent 18ee75e commit 9225ab4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/saleor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.10
version: 0.1.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
22 changes: 22 additions & 0 deletions charts/saleor/templates/celery_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ spec:
- --app=saleor.celeryconf:app
- worker
- --loglevel=INFO
livenessProbe:
exec:
command:
- /bin/sh
- -c
- timeout 10 celery -b $CELERY_BROKER_URL inspect ping -d celery@$HOSTNAME
failureThreshold: 1
initialDelaySeconds: 30
periodSeconds: 40
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
exec:
command:
- /bin/sh
- -c
- timeout 10 celery -b $CELERY_BROKER_URL inspect ping -d celery@$HOSTNAME
failureThreshold: 1
initialDelaySeconds: 30
periodSeconds: 40
successThreshold: 1
timeoutSeconds: 10
resources:
{{- toYaml .Values.celeryrunner.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down

0 comments on commit 9225ab4

Please sign in to comment.