Skip to content

Commit 6a65657

Browse files
author
Alex Vest
committedOct 6, 2022
Add pod disruption budget
1 parent e0fcc3b commit 6a65657

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if .Values.reloader.podDisruptionBudget.enabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ template "reloader-fullname" . }}
6+
spec:
7+
minAvailable: {{ .Values.reloader.podDisruptionBudget.minAvailable }}
8+
selector:
9+
matchLabels:
10+
app: {{ template "reloader-fullname" . }}
11+
{{- end }}

‎deployments/kubernetes/chart/reloader/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,8 @@ reloader:
153153
# labels:
154154
# Set timeout for scrape
155155
# timeout: 10s
156+
157+
podDisruptionBudget:
158+
enabled: false
159+
# Set the minimum available replicas
160+
# minAvailable: 1

0 commit comments

Comments
 (0)
Please sign in to comment.