mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Kubernetes Prow Robot
parent
2f03b54df7
commit
4e81b415cc
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user