Skip to content

Commit

Permalink
Change default anti-affinity to required mode
Browse files Browse the repository at this point in the history
As described in the issue rancher#45422, the preferredDuringSchedulingIgnoredDuringExecution makes scheduler schedule all the pods on the first available node, changing this to requiredDuringSchedulingIgnoredDuringExecution will make the schedule wait in pending till the 2nd node to comes up

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
  • Loading branch information
vatsalparekh committed May 8, 2024
1 parent 4964f37 commit 6e99c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/settings/affinity.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const (
]
},
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"weight": 100,
"podAffinityTerm": {
Expand Down

0 comments on commit 6e99c6b

Please sign in to comment.