Skip to content
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

PAASTA-18198: add pool_node_affinities to improve Karpenter AZ balance #3849

Merged
merged 13 commits into from May 2, 2024

Conversation

gmdfalk
Copy link
Contributor

@gmdfalk gmdfalk commented Apr 30, 2024

This adds a new system config option, pool_node_affinities.
It's necessary to configure pods with a preselection of preferred 2-3 AZs per pool so that Karpenter does not try to consider all 6+ AZs in a region for scheduling decisions.

This option is a temporary solution and the proper fix will likely be to adopt something like the descheduler to achieve a better AZ balance (along with other benefits).

Signed-off-by: Max Falk gfalk@yelp.com

Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
@gmdfalk gmdfalk changed the title PAASTA-18198: add pool_node_selectors PAASTA-18198: add pool_node_affinities May 2, 2024
@gmdfalk gmdfalk changed the title PAASTA-18198: add pool_node_affinities PAASTA-18198: add pool_node_affinities to improve Karpenter AZ balance May 2, 2024
@gmdfalk gmdfalk marked this pull request as ready for review May 2, 2024 08:22
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
paasta_tools/kubernetes_tools.py Outdated Show resolved Hide resolved
paasta_tools/kubernetes_tools.py Show resolved Hide resolved
paasta_tools/kubernetes_tools.py Outdated Show resolved Hide resolved
Signed-off-by: Max Falk <gfalk@yelp.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
@gmdfalk gmdfalk merged commit 5e91e8c into master May 2, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants