-
Notifications
You must be signed in to change notification settings - Fork 287
Set topologySpreadConstraints
by default
#398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In my quick experiment, I was able to use |
Found a bug while testing it, and reported in kubernetes/kubernetes Version compatibility Label Caveat The behavior of There is a bug with |
That's as expected. The featuregate is enforced in both apiserver and scheduler side. If it's not enabled in apiserver side, apiserver will drop the |
Correc. And there is an upcoming beta feature called DefaultTopologySpread in 1.20, which is aimed to help cluster admin to apply a default global behavior. Ref: https://github.com/kubernetes/enhancements/blob/master/keps/sig-scheduling/1258-default-pod-topology-spread/README.md |
topologySpreadConstraints
can be configured in such a way that the StatefulSet will be spread across multiple AZs if they are available but will also deploy to a single-AZ cluster such askind
. Therefore, we can just set the constraints by default as a sane default for most deployments. Ultimately we should achieve something like this:The text was updated successfully, but these errors were encountered: