Add PodDisruptionBudget

This commit is contained in:
David Burke 2020-07-09 15:00:33 -04:00
parent fe4006e693
commit 6ea93893cf
2 changed files with 16 additions and 0 deletions

14
templates/pdb.yaml Normal file
View file

@ -0,0 +1,14 @@
{{- if .Values.web.budget.minAvailable -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "glitchtip.fullname" . }}
labels:
{{- include "glitchtip.labels" . | nindent 4 }}
spec:
minAvailable: {{ .Values.web.budget.minAvailable }}
selector:
matchLabels:
{{- include "glitchtip.selectorLabels" . | nindent 6 }}
role: web
{{- end -}}

View file

@ -28,6 +28,8 @@ web:
cputhreshold: 70
minpods: 2
maxpods: 4
budget:
minAvailable: 1
resources:
{}
# limits: