mirror of https://github.com/minio/minio.git
feat(helm): support minAvailable in podDisruptionBudget
Signed-off-by: Benjamin Pinchon <dev@mdfr.me>
This commit is contained in:
parent
456d9462e5
commit
5d60407b7b
|
@ -6,11 +6,16 @@ apiVersion: policy/v1
|
|||
{{- end }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: minio
|
||||
name: {{ template "minio.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "minio.name" . }}
|
||||
spec:
|
||||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
||||
{{- with .Values.podDisruptionBudget.minAvailable }}
|
||||
minAvailable: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.podDisruptionBudget.maxUnavailable }}
|
||||
maxUnavailable: {{ . }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "minio.name" . }}
|
||||
|
|
|
@ -585,7 +585,8 @@ networkPolicy:
|
|||
##
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
maxUnavailable: 1
|
||||
maxUnavailable: ~
|
||||
minAvailable: ~
|
||||
|
||||
## Specify the service account to use for the MinIO pods. If 'create' is set to 'false'
|
||||
## and 'name' is left unspecified, the account 'default' will be used.
|
||||
|
|
Loading…
Reference in New Issue