From db70a2bed0cd7dce46ca0775a248a8839f32a22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Bozac=C4=B1?= Date: Fri, 20 Feb 2026 11:19:51 +0300 Subject: [PATCH] Feature/deployment probe override (#1876) Co-authored-by: capitansec Co-authored-by: houseme --- helm/rustfs/templates/deployment.yaml | 24 ++++++++---------------- helm/rustfs/values.yaml | 2 ++ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index ae7f8f454..71db7668b 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -96,24 +96,16 @@ spec: name: {{ include "rustfs.secretName" . }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.livenessProbe.enabled }} livenessProbe: - httpGet: - path: /health - port: 9000 - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 3 - successThreshold: 1 - failureThreshold: 3 + {{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }} + {{- end }} + + {{- if .Values.readinessProbe.enabled }} readinessProbe: - httpGet: - path: /health/ready - port: 9000 - initialDelaySeconds: 30 - periodSeconds: 5 - timeoutSeconds: 3 - successThreshold: 1 - failureThreshold: 3 + {{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }} + {{- end }} + volumeMounts: - name: logs mountPath: {{ $logDir }} diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index d7993595e..80ccc74d6 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -184,6 +184,7 @@ resources: {} # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ livenessProbe: + enabled: true # omitted httpGet: path: /health port: endpoint @@ -194,6 +195,7 @@ livenessProbe: failureThreshold: 3 readinessProbe: + enabled: true # omitted httpGet: path: /health/ready port: endpoint