helm-charts/charts/codex/templates/poddisruptionbudjet.yaml
2024-09-13 21:48:11 +03:00

18 lines
504 B
YAML

{{- if .Values.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "codex.fullname" .}}
labels: {{ include "codex.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{ toYaml .Values.podDisruptionBudget | nindent 2 }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "codex.fullname" .}}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}