Skip to content

Commit

Permalink
add pod disruption budgets to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 authored and toelke committed Apr 29, 2024
1 parent 3b0efd4 commit bd3999d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/wave/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.pdb.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "wave-fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
{{ include "wave.selectorLabels" . | nindent 6}}
maxUnavailable: 1
{{- end }}
4 changes: 4 additions & 0 deletions charts/wave/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ nodeSelector: {}
# Replicas > 1 will enable leader election
replicas: 1

# Add PodDisruptionBudget which should be enabled for replicas > 1
pdb:
enabled: false

# Additional volumes to use in the pod.
extraVolumes: []
# - name: tmp
Expand Down

0 comments on commit bd3999d

Please sign in to comment.