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 }}