add minDomain for cluster topologySpread #32695
Open
+24
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Without a minDomain a topology spread constraint may place pods on only the subset of topology keys
where an existing node is provisioned. If we want to spread equally across all support availability zones rather than all availability zones that currently have nodes, then we need to set a minDomain value equal to the number of supported availability zones.
Perhaps a more appropriate way to handle this would be use the availability_zone's provided to environmentd. This was easier to throw together, it's more flexible, but less intuitive and easier to mess up.
There's some added trickiness to this one could imagine, where, for self-managed, this is not a global static, but a value that is dictated by the AZs available on the node_groups servicing a particular cluster or cluster size.
Motivation
We don't quite spread evenly.
Tips for reviewer
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.