mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 11:32:19 +00:00
feat(helm): add topology spread constraints configuration to StatefulSet (#3187)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -60,6 +60,10 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml .Values.tolerations | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if and .Values.topologySpreadConstraints.enabled .Values.topologySpreadConstraints.constraints }}
|
||||
topologySpreadConstraints:
|
||||
{{- toYaml .Values.topologySpreadConstraints.constraints | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
initContainers:
|
||||
|
||||
@@ -302,6 +302,16 @@ affinity:
|
||||
topologyKey: kubernetes.io/hostname
|
||||
nodeAffinity: {}
|
||||
|
||||
topologySpreadConstraints:
|
||||
enabled: false
|
||||
constraints: []
|
||||
# - maxSkew: 1
|
||||
# topologyKey: topology.kubernetes.io/zone
|
||||
# whenUnsatisfiable: ScheduleAnyway
|
||||
# labelSelector:
|
||||
# matchLabels:
|
||||
# app.kubernetes.io/name: rustfs
|
||||
|
||||
storageclass:
|
||||
name: local-path
|
||||
dataStorageSize: 256Mi
|
||||
|
||||
Reference in New Issue
Block a user