From 428117fcab65b1f6cd606edfc53345f96eef190e Mon Sep 17 00:00:00 2001 From: Hao Wang Date: Fri, 27 Mar 2026 08:56:11 -0400 Subject: [PATCH] feat: make readiness, liveness and startup probes configurable --- wekan/templates/deployment.yaml | 14 ++++++-------- wekan/values.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/wekan/templates/deployment.yaml b/wekan/templates/deployment.yaml index 4fbe78b..c4da621 100644 --- a/wekan/templates/deployment.yaml +++ b/wekan/templates/deployment.yaml @@ -91,15 +91,13 @@ spec: {{- tpl . $ | nindent 10 }} {{- end }} readinessProbe: - httpGet: - path: / - port: {{ .Values.service.port }} - initialDelaySeconds: 20 + {{- toYaml .Values.readinessProbe | nindent 12 }} livenessProbe: - httpGet: - path: / - port: {{ .Values.service.port }} - initialDelaySeconds: 60 + {{- toYaml .Values.livenessProbe | nindent 12 }} + {{- if .Values.startupProbe.enabled }} + startupProbe: + {{- omit .Values.startupProbe "enabled" | toYaml | nindent 12 }} + {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} {{ if .Values.sharedDataFolder.enabled }} diff --git a/wekan/values.yaml b/wekan/values.yaml index edecb0f..a508492 100644 --- a/wekan/values.yaml +++ b/wekan/values.yaml @@ -109,6 +109,37 @@ resources: memory: 1Gi cpu: 500m +readinessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + +livenessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 60 + periodSeconds: 20 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + +startupProbe: + enabled: false + httpGet: + path: / + port: http + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 30 + init: enabled: true image: