File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed
Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,9 @@ spec:
232232 operator : In
233233 values :
234234 - {{ $env }}
235- podAntiAffinity : # try to avoid co-locating pods of the same app+color in the same node
236- preferredDuringSchedulingIgnoredDuringExecution :
237- - weight : 100
238- podAffinityTerm :
235+ podAntiAffinity : # avoid co-locating pods of the same app+color in the same node
236+ requiredDuringSchedulingIgnoredDuringExecution :
237+ - podAffinityTerm :
239238 labelSelector :
240239 matchLabels :
241240 product : {{ $product }}
Original file line number Diff line number Diff line change @@ -175,16 +175,17 @@ spec:
175175 operator : In
176176 values :
177177 - {{ $env }}
178- podAntiAffinity : # try to avoid co-locating pods of the same app+color in the same node
179- preferredDuringSchedulingIgnoredDuringExecution :
180- - weight : 100
181- podAffinityTerm :
178+ podAntiAffinity : # avoid co-locating pods of the same app+color in the same node
179+ requiredDuringSchedulingIgnoredDuringExecution :
180+ - podAffinityTerm :
182181 labelSelector :
183182 matchLabels :
184183 product : {{ $product }}
185184 app : api
186185 color : {{ $color }}
187186 topologyKey : kubernetes.io/hostname
187+
188+
188189 containers :
189190 - name : api
190191 image : {{ $image.name }}:{{ $image.tag }}
Original file line number Diff line number Diff line change @@ -138,10 +138,9 @@ spec:
138138 operator : In
139139 values :
140140 - {{ $env }}
141- podAntiAffinity : # try to avoid co-locating pods of the same app+color in the same node
142- preferredDuringSchedulingIgnoredDuringExecution :
143- - weight : 100
144- podAffinityTerm :
141+ podAntiAffinity : # avoid co-locating pods of the same app+color in the same node
142+ requiredDuringSchedulingIgnoredDuringExecution :
143+ - podAffinityTerm :
145144 labelSelector :
146145 matchLabels :
147146 product : {{ $product }}
You can’t perform that action at this time.
0 commit comments