From 4f5653e6561126f10364f67315677b9d7b1bfbe0 Mon Sep 17 00:00:00 2001 From: majinghe <42570491+majinghe@users.noreply.github.com> Date: Thu, 8 Jan 2026 20:44:16 +0800 Subject: [PATCH] add upgrade strategy for standalone mode (#1431) --- helm/rustfs/templates/deployment.yaml | 4 ++++ helm/rustfs/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 2ef42be9..d0d2a10a 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -10,6 +10,10 @@ metadata: {{- end }} spec: replicas: 1 + {{- with .Values.mode.standalone.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "rustfs.selectorLabels" . | nindent 6 }} diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index c8983679..f59260b1 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -30,6 +30,11 @@ fullnameOverride: "" mode: standalone: enabled: false + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 distributed: enabled: true