File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed
Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -112,4 +112,7 @@ spec:
112112 {{ end -}}
113113 {{ if .Values.deployment.priorityClassName -}}
114114 priorityClassName : {{ .Values.deployment.priorityClassName }}
115- {{ end -}}
115+ {{ end -}}
116+ {{ if .Values.deployment.topologySpreadConstraints -}}
117+ topologySpreadConstraints : {{ .Values.deployment.topologySpreadConstraints | toYaml | nindent 8 }}
118+ {{ end -}}
Original file line number Diff line number Diff line change 1+ {{- if .Values.pdb.enabled -}}
2+ apiVersion : policy/v1
3+ kind : PodDisruptionBudget
4+ metadata :
5+ name : {{ include "app.fullname" . }}
6+ namespace : {{ .Release.Namespace }}
7+ labels :
8+ app.kubernetes.io/name : {{ include "app.name" . }}
9+ app.kubernetes.io/instance : {{ .Release.Name }}
10+ app.kubernetes.io/managed-by : Helm
11+ app.kubernetes.io/version : {{ .Chart.AppVersion | quote }}
12+ k8s-app : {{ include "app.name" . }}
13+ helm.sh/chart : {{ include "chart.name-version" . }}
14+ control-plane : controller
15+ spec :
16+ selector :
17+ matchLabels :
18+ app.kubernetes.io/name : {{ include "app.name" . }}
19+ app.kubernetes.io/instance : {{ .Release.Name }}
20+ {{- with .Values.pdb.minAvailable }}
21+ minAvailable : {{ . }}
22+ {{- end }}
23+ {{- with .Values.pdb.maxUnavailable }}
24+ maxUnavailable : {{ . }}
25+ {{- end }}
26+ {{- end -}}
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ deployment:
3232 priorityClassName : " "
3333 # Number of replicas.
3434 replicas : 2
35+ topologySpreadConstraints : []
3536
3637# If "installScope: cluster" then these labels will be applied to ClusterRole
3738role :
38- labels : {}
39+ labels : {}
3940
4041metrics :
4142 service :
@@ -54,6 +55,11 @@ resources:
5455 memory : " 128Mi"
5556 cpu : " 100m"
5657
58+ pdb :
59+ enabled : false
60+ minAvailable :
61+ maxUnavailable :
62+
5763# log level for the controller
5864log :
5965 level : info
You can’t perform that action at this time.
0 commit comments