Skip to content

Commit

Permalink
PDB for wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Sep 14, 2023
1 parent 3e42c70 commit 83d983c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions charts/wiki/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.poddisruptionbudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "wiki.fullname" . }}
labels:
{{- include "wiki.labels" . | nindent 4 }}
spec:
{{- with .Values.poddisruptionbudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.poddisruptionbudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: {{ include "wiki.fullname" . }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/wiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ autoscaling:
nodeSelector: {}
tolerations: []
affinity: {}
poddisruptionbudget:
enabled: false
minAvailable: 1
maxUnavailable: 1

0 comments on commit 83d983c

Please sign in to comment.