Add PodDisruptionBudget
This commit is contained in:
parent
fe4006e693
commit
6ea93893cf
14
templates/pdb.yaml
Normal file
14
templates/pdb.yaml
Normal 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 -}}
|
|
@ -28,6 +28,8 @@ web:
|
|||
cputhreshold: 70
|
||||
minpods: 2
|
||||
maxpods: 4
|
||||
budget:
|
||||
minAvailable: 1
|
||||
resources:
|
||||
{}
|
||||
# limits:
|
||||
|
|
Loading…
Reference in a new issue