-
Notifications
You must be signed in to change notification settings - Fork 7
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
TopologySpreadConstraints: add minDomains=3 #653
Conversation
CHANGES.rst
Outdated
@@ -17,6 +17,7 @@ Unreleased | |||
|
|||
* Added configuration for JWT authentication from CrateDB version 5.7.2 onwards. | |||
* Bumped version of the JMX Exporter to ``1.2.0`` | |||
* Add ``minDomains`` to ``TopologySpreadConstraint`` to ensure that pods are spread across zones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this goes into Unreleased
.
This help Cluster Autoscaler to provision nodes in zone which are set to 0 nodes. Require at least 3 nodes (as we have 3 zones) https://kubernetes.io/blog/2023/04/17/fine-grained-pod-topology-spread-features-beta/#kep-3022-min-domains-in-pod-topology-spread
a053e05
to
186cc18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -270,6 +270,7 @@ def get_topology_spread( | |||
topology_spread = [ | |||
V1TopologySpreadConstraint( | |||
max_skew=1, | |||
min_domains=3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure whether we can always add this, or need to be more granular depending on the setup, or scaling of a cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we add the topologySpreadContraints
on all the Statefulset and the Setting seemingly does not hurt eg. on a Nodegroup with only one Availability Zone.
(To answer my question, myself).
This help Cluster Autoscaler to provision nodes in zone which are set to 0 nodes.
Require at least 3 nodes (as we have 3 zones)
https://kubernetes.io/blog/2023/04/17/fine-grained-pod-topology-spread-features-beta/#kep-3022-min-domains-in-pod-topology-spread
Summary of changes
Checklist
CHANGES.rst