From 52090d72d653ff6ac8669b1133d50352680d402a Mon Sep 17 00:00:00 2001 From: majinghe <42570491+majinghe@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:43:46 +0800 Subject: [PATCH] fix: add liveness and readiness probe (#1953) --- helm/rustfs/templates/deployment.yaml | 2 -- helm/rustfs/templates/statefulset.yaml | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 71db7668b..e57da1f7c 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -100,12 +100,10 @@ spec: livenessProbe: {{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }} {{- end }} - {{- if .Values.readinessProbe.enabled }} readinessProbe: {{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }} {{- end }} - volumeMounts: - name: logs mountPath: {{ $logDir }} diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index f62fd619b..12e194eee 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -119,6 +119,14 @@ spec: name: {{ include "rustfs.secretName" . }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.livenessProbe.enabled }} + livenessProbe: + {{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }} + {{- end }} + {{- if .Values.readinessProbe.enabled }} + readinessProbe: + {{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }} + {{- end }} volumeMounts: {{- if .Values.mtls.enabled }} {{- if not .Values.mtls.serverOnly }}