diff --git a/helm/minio/templates/poddisruptionbudget.yaml b/helm/minio/templates/poddisruptionbudget.yaml index a5f90a080..7b3e7f641 100644 --- a/helm/minio/templates/poddisruptionbudget.yaml +++ b/helm/minio/templates/poddisruptionbudget.yaml @@ -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" . }} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index 2ea13b10d..dde335fc3 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -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.