Skip to content

Commit 8caef21

Browse files
committed
[IMP] Add basic liveness and readiness probes to iris_worker deployment
1 parent 7ff63e5 commit 8caef21

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

deploy/kubernetes/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

deploy/kubernetes/charts/templates/iris_worker.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,26 @@ spec:
7373
- name: NUMBER_OF_CHILD
7474
value: {{ .Values.irisworker.NUMBER_OF_CHILD | quote }}
7575

76+
livenessProbe:
77+
exec:
78+
command:
79+
- sh
80+
- -c
81+
- |
82+
ps -eo cmd | grep -E "celery -A app.celery worker" > /dev/null
83+
initialDelaySeconds: 30
84+
periodSeconds: 10
85+
failureThreshold: 3
86+
87+
readinessProbe:
88+
exec:
89+
command:
90+
- sh
91+
- -c
92+
- |
93+
ps -eo cmd | grep -E "celery -A app.celery worker" > /dev/null
94+
initialDelaySeconds: 15
95+
periodSeconds: 10
7696

7797
volumeMounts:
7898
- mountPath: /home/iris/downloads

0 commit comments

Comments
 (0)