Files
charts/bitnami/etcd/templates/pdb.yaml
Carlos Rodríguez Hernández 78c98d3ef6 [bitnami/etcd] Add PodDisruptionBudget (#2545)
* [bitnami/etcd] Add PodDisruptionBudget

* Replace podDisruptionBudget by pdb

* [bitnami/etcd] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2020-05-08 13:08:11 +02:00

17 lines
481 B
YAML

{{- if .Values.pdb.enabled }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ template "etcd.fullname" . }}
labels: {{- include "etcd.labels" . | nindent 4 }}
spec:
{{- if .Values.pdb.minAvailable }}
minAvailable: {{ .Values.pdb.minAvailable }}
{{- end }}
{{- if .Values.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels: {{- include "etcd.matchLabels" . | nindent 6 }}
{{- end }}