Add pod disruption budget

This commit is contained in:
Alex Vest
2022-10-06 11:51:28 +01:00
parent e0fcc3bfa6
commit 6a65657e27
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
{{- if .Values.reloader.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ template "reloader-fullname" . }}
spec:
minAvailable: {{ .Values.reloader.podDisruptionBudget.minAvailable }}
selector:
matchLabels:
app: {{ template "reloader-fullname" . }}
{{- end }}
@@ -153,3 +153,8 @@ reloader:
# labels:
# Set timeout for scrape
# timeout: 10s
podDisruptionBudget:
enabled: false
# Set the minimum available replicas
# minAvailable: 1