File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 49
49
affinity :
50
50
{{- tpl (toYaml .Values.affinity) . | nindent 8 }}
51
51
{{- end }}
52
+ {{- if .Values.topologySpreadConstraints }}
53
+ topologySpreadConstraints :
54
+ {{- tpl (toYaml .Values.topologySpreadConstraints) . | nindent 8 }}
55
+ {{- end }}
52
56
{{- if .Values.image.pullSecret }}
53
57
imagePullSecrets :
54
58
- name : {{ .Values.image.pullSecret }}
64
68
{{- end }}
65
69
{{- if .Values.podPriorityClassName }}
66
70
priorityClassName : {{ .Values.podPriorityClassName }}
67
- {{- end }}
71
+ {{- end }}
68
72
containers :
69
73
- name : flagger
70
74
{{- if .Values.securityContext.enabled }}
Original file line number Diff line number Diff line change @@ -167,6 +167,19 @@ affinity:
167
167
app.kubernetes.io/instance : ' {{ .Release.Name }}'
168
168
topologyKey : kubernetes.io/hostname
169
169
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
+
170
183
prometheus :
171
184
# to be used with ingress controllers
172
185
install : false
You can’t perform that action at this time.
0 commit comments