File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 4949 affinity :
5050 {{- tpl (toYaml .Values.affinity) . | nindent 8 }}
5151 {{- end }}
52+ {{- if .Values.topologySpreadConstraints }}
53+ topologySpreadConstraints :
54+ {{- tpl (toYaml .Values.topologySpreadConstraints) . | nindent 8 }}
55+ {{- end }}
5256 {{- if .Values.image.pullSecret }}
5357 imagePullSecrets :
5458 - name : {{ .Values.image.pullSecret }}
6468 {{- end }}
6569 {{- if .Values.podPriorityClassName }}
6670 priorityClassName : {{ .Values.podPriorityClassName }}
67- {{- end }}
71+ {{- end }}
6872 containers :
6973 - name : flagger
7074 {{- if .Values.securityContext.enabled }}
Original file line number Diff line number Diff line change @@ -167,6 +167,19 @@ affinity:
167167 app.kubernetes.io/instance : ' {{ .Release.Name }}'
168168 topologyKey : kubernetes.io/hostname
169169
170+ topologySpreadConstraints :
171+ - labelSelector :
172+ matchLabels :
173+ app.kubernetes.io/name : ' {{ template "flagger.name" . }}'
174+ app.kubernetes.io/instance : ' {{ .Release.Name }}'
175+ matchLabelKeys :
176+ - pod-template-hash
177+ topologyKey : topology.kubernetes.io/zone
178+ maxSkew : 1
179+ whenUnsatisfiable : ScheduleAnyway
180+
181+
182+
170183prometheus :
171184 # to be used with ingress controllers
172185 install : false
You can’t perform that action at this time.
0 commit comments