minio: add PodDisruptionBudget (#19303)

* add configurable PDB for minio
* change label for post-install-create-bucket-job because
  until https://github.com/kubernetes/kubernetes/pull/85553 is merged,
  PDB will also detect the minio-create-bucket-job and
  PDB won't work correctly (https://github.com/kubernetes/kubernetes/issues/77383)

Signed-off-by: Mario Constanti <github@constanti.de>
This commit is contained in:
Mario Constanti
2019-12-10 00:55:29 -08:00
committed by Kubernetes Prow Robot
parent 2f03b54df7
commit 4e81b415cc
4 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: MinIO is a high performance distributed object storage server, designed for large-scale private cloud infrastructure.
name: minio
version: 3.0.2
version: 3.0.3
appVersion: RELEASE.2019-08-07T01-59-21Z
keywords:
- storage
@@ -0,0 +1,13 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: minio
labels:
app: {{ template "minio.name" . }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
matchLabels:
app: {{ template "minio.name" . }}
{{- end }}
@@ -4,7 +4,7 @@ kind: Job
metadata:
name: {{ template "minio.fullname" . }}-make-bucket-job
labels:
app: {{ template "minio.name" . }}
app: {{ template "minio.name" . }}-make-bucket-job
chart: {{ template "minio.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
+7
View File
@@ -265,6 +265,13 @@ networkPolicy:
enabled: false
allowExternal: true
## PodDisruptionBudget settings
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
##
podDisruptionBudget:
enabled: false
maxUnavailable: 1
## 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.
serviceAccount: