add upgrade strategy for standalone mode (#1431)

This commit is contained in:
majinghe
2026-01-08 20:44:16 +08:00
committed by GitHub
parent a95e549430
commit 4f5653e656
2 changed files with 9 additions and 0 deletions

View File

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

View File

@@ -30,6 +30,11 @@ fullnameOverride: ""
mode:
standalone:
enabled: false
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
distributed:
enabled: true