cw-infra-apps/charts/backend2/charts/call-realtime-app-k8s/templates/pdb.yaml
2026-04-12 13:05:39 +03:00

19 lines
543 B
YAML

{{- if and .Values.pdb .Values.pdb.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "call-realtime-app.fullname" . }}
labels:
{{- include "call-realtime-app.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 "call-realtime-app.selectorLabels" . | nindent 6 }}
{{- end }}