mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
15 lines
464 B
YAML
15 lines
464 B
YAML
{{- $replicaCount := int .Values.replicaCount }}
|
|
{{- if gt $replicaCount 1 }}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "kafka.fullname" . }}
|
|
labels: {{- include "kafka.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: kafka
|
|
spec:
|
|
selector:
|
|
matchLabels: {{- include "kafka.matchLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: kafka
|
|
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
|
|
{{- end }}
|