Skip to content

Commit

Permalink
✨ [#148] Update livenessProbe Open Notificaties
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Jan 10, 2025
1 parent b592d66 commit 5ba89b6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/opennotificaties/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: opennotificaties
description: API voor het routeren van notificaties

type: application
version: 1.6.0-beta.3
version: 1.7.0-beta.0
appVersion: latest

dependencies:
Expand Down
8 changes: 5 additions & 3 deletions charts/opennotificaties/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# opennotificaties

![Version: 1.6.0-beta.1](https://img.shields.io/badge/Version-1.6.0--beta.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.7.0-beta.0](https://img.shields.io/badge/Version-1.7.0--beta.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

API voor het routeren van notificaties

Expand Down Expand Up @@ -209,8 +209,10 @@ API voor het routeren van notificaties
| worker.autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| worker.autoscaling.targetMemoryUtilizationPercentage | int | `80` | |
| worker.concurrency | int | `4` | |
| worker.livenessProbe.exec.command[0] | string | `"python"` | |
| worker.livenessProbe.exec.command[1] | string | `"/app/bin/check_celery_worker_liveness.py"` | |
| worker.livenessProbe.enabled | bool | `false` | |
| worker.livenessProbe.exec.command[0] | string | `"/bin/sh"` | |
| worker.livenessProbe.exec.command[1] | string | `"-c"` | |
| worker.livenessProbe.exec.command[2] | string | `"celery --workdir src --app nrc.celery inspect --destination celery@${HOSTNAME} active"` | |
| worker.livenessProbe.failureThreshold | int | `10` | |
| worker.livenessProbe.initialDelaySeconds | int | `60` | |
| worker.livenessProbe.periodSeconds | int | `50` | |
Expand Down
12 changes: 9 additions & 3 deletions charts/opennotificaties/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,16 @@ spec:
{{- if .Values.extraEnvVars }}
{{- include "opennotificaties.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.worker.livenessProbe }}
{{- if .Values.worker.livenessProbe.enabled }}
livenessProbe:
{{- toYaml .Values.worker.livenessProbe | nindent 12 }}
{{- end }}
exec:
{{- toYaml .Values.worker.livenessProbe.exec | nindent 14 }}
initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.worker.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.worker.livenessProbe.failureThreshold }}
{{- end }}
resources:
{{- toYaml .Values.worker.resources | nindent 12 }}
command:
Expand Down
6 changes: 4 additions & 2 deletions charts/opennotificaties/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@ worker:
resources: {}
maxWorkerLivenessDelta: ""
livenessProbe:
enabled: false
exec:
command:
- python
- /app/bin/check_celery_worker_liveness.py
- /bin/sh
- -c
- celery --workdir src --app nrc.celery inspect --destination celery@${HOSTNAME} active
initialDelaySeconds: 60
# Periodeseconds should not exceed maxWorkerLivenessDelta
periodSeconds: 50
Expand Down

0 comments on commit 5ba89b6

Please sign in to comment.