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