diff --git a/templates/pdb.yaml b/templates/pdb.yaml new file mode 100644 index 0000000..5750b0c --- /dev/null +++ b/templates/pdb.yaml @@ -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 -}} diff --git a/values.yaml b/values.yaml index 2365fb8..3c0ffb9 100644 --- a/values.yaml +++ b/values.yaml @@ -28,6 +28,8 @@ web: cputhreshold: 70 minpods: 2 maxpods: 4 + budget: + minAvailable: 1 resources: {} # limits: