17 lines
511 B
YAML
17 lines
511 B
YAML
{{- if .Values.podDisruptionBudget.enabled }}
|
|
{{- range $component := list "api" "worker" "web" }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "remora.fullname" $ }}-{{ $component }}
|
|
labels:
|
|
{{- include "remora.labels" $ | nindent 4 }}
|
|
spec:
|
|
minAvailable: {{ $.Values.podDisruptionBudget.minAvailable }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "remora.selectorLabels" $ | nindent 6 }}
|
|
app.kubernetes.io/component: {{ $component }}
|
|
---
|
|
{{- end }}
|
|
{{- end }}
|