feat: Allow scaledown

This commit is contained in:
Dries De Peuter 2023-06-12 15:08:05 +02:00
parent 6b9c66a413
commit e13df93dd8
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,13 @@
{{- if and (gt (.Values.replicaCount | int) 1) (.Values.podDisruptionBudget) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "well-known.fullname" . }}
labels:
{{- include "well-known.labels" . | nindent 4 }}
spec:
{{ toYaml .Values.podDisruptionBudget }}
selector:
matchLabels:
{{- include "well-known.selectorLabels" . | nindent 6 }}
{{- end }}

View file

@ -33,6 +33,8 @@ webserver:
config:
accessLogEnabled: false
podDisruptionBudget:
maxUnavailable: 1
imagePullSecrets: []
nameOverride: ""
@ -47,7 +49,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podAnnotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
podSecurityContext: {}
# fsGroup: 2000