mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 14:57:16 +08:00
* [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>
17 lines
481 B
YAML
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 }}
|