Skip to content

Commit

Permalink
✨ [#148] Add livenessProbe Open Klant
Browse files Browse the repository at this point in the history
Timeouts added in maykinmedia/open-klant#316
  • Loading branch information
SilviaAmAm committed Jan 14, 2025
1 parent faf3c1b commit 111cf50
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/openklant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openklant
description: Project dat de Klanten API | https://klanten-api.vng.cloud en Contactmomenten API | https://contactmomenten-api.vng.cloud/ in een enkel component combineert.

type: application
version: 1.4.0-beta.5
version: 1.5.0-beta.0
appVersion: latest

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

![Version: 1.4.0-beta.1](https://img.shields.io/badge/Version-1.4.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.5.0-beta.0](https://img.shields.io/badge/Version-1.5.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)

Project dat de Klanten API | https://klanten-api.vng.cloud en Contactmomenten API | https://contactmomenten-api.vng.cloud/ in een enkel component combineert.

Expand Down Expand Up @@ -128,11 +128,15 @@ Project dat de Klanten API | https://klanten-api.vng.cloud en Contactmomenten AP
| worker.autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| worker.autoscaling.targetMemoryUtilizationPercentage | int | `80` | |
| worker.concurrency | int | `4` | |
| 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 openklant.celery inspect --destination celery@${HOSTNAME} active"` | |
| worker.livenessProbe.failureThreshold | int | `3` | |
| worker.livenessProbe.initialDelaySeconds | int | `60` | |
| worker.livenessProbe.periodSeconds | int | `10` | |
| worker.livenessProbe.periodSeconds | int | `30` | |
| worker.livenessProbe.successThreshold | int | `1` | |
| worker.livenessProbe.timeoutSeconds | int | `5` | |
| worker.livenessProbe.timeoutSeconds | int | `10` | |
| worker.podLabels | object | `{}` | |
| worker.readinessProbe.failureThreshold | int | `3` | |
| worker.readinessProbe.initialDelaySeconds | int | `30` | |
Expand Down
10 changes: 10 additions & 0 deletions charts/openklant/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ spec:
{{- if .Values.extraEnvVars }}
{{- include "openklant.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.worker.livenessProbe.enabled }}
livenessProbe:
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
10 changes: 8 additions & 2 deletions charts/openklant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,15 @@ worker:
podLabels: { }
resources: { }
livenessProbe:
enabled: false
exec:
command:
- /bin/sh
- -c
- celery --workdir src --app openklant.celery inspect --destination celery@${HOSTNAME} active
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
successThreshold: 1
readinessProbe:
Expand Down

0 comments on commit 111cf50

Please sign in to comment.