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 }}
|
{{- end }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: minio
|
name: {{ template "minio.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "minio.name" . }}
|
app: {{ template "minio.name" . }}
|
||||||
spec:
|
spec:
|
||||||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
{{- with .Values.podDisruptionBudget.minAvailable }}
|
||||||
|
minAvailable: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
|
maxUnavailable: {{ . }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "minio.name" . }}
|
app: {{ template "minio.name" . }}
|
||||||
|
|
|
@ -585,7 +585,8 @@ networkPolicy:
|
||||||
##
|
##
|
||||||
podDisruptionBudget:
|
podDisruptionBudget:
|
||||||
enabled: false
|
enabled: false
|
||||||
maxUnavailable: 1
|
maxUnavailable: ~
|
||||||
|
minAvailable: ~
|
||||||
|
|
||||||
## Specify the service account to use for the MinIO pods. If 'create' is set to 'false'
|
## 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.
|
## and 'name' is left unspecified, the account 'default' will be used.
|
||||||
|
|
Loading…
Reference in New Issue