Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/kubernetes/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
13 changes: 13 additions & 0 deletions deploy/kubernetes/charts/templates/iris_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ spec:
ports:
- containerPort: 8000

livenessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 30
periodSeconds: 5
readinessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 10
periodSeconds: 5

volumeMounts:
- mountPath: /home/iris/downloads
name: iris-downloads
Expand Down
20 changes: 20 additions & 0 deletions deploy/kubernetes/charts/templates/iris_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ spec:
- name: NUMBER_OF_CHILD
value: {{ .Values.irisworker.NUMBER_OF_CHILD | quote }}

livenessProbe:
exec:
command:
- sh
- -c
- |
ps -eo cmd | grep -E "celery -A app.celery worker" | grep -Pv ^grep > /dev/null
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 3

readinessProbe:
exec:
command:
- sh
- -c
- |
ps -eo cmd | grep -E "celery -A app.celery worker" | grep -Pv ^grep > /dev/null
initialDelaySeconds: 15
periodSeconds: 10

volumeMounts:
- mountPath: /home/iris/downloads
Expand Down
Loading