feat: Allow scaledown
This commit is contained in:
parent
6b9c66a413
commit
e13df93dd8
2 changed files with 17 additions and 1 deletions
13
charts/well-known/templates/pdb.yaml
Normal file
13
charts/well-known/templates/pdb.yaml
Normal 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 }}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue