-
Notifications
You must be signed in to change notification settings - Fork 527
Add Service TrafficDistribution to TopologyAwareRouting #10973
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
Add Service TrafficDistribution to TopologyAwareRouting #10973
Conversation
/assign |
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.
Hi @dergeberl ,
Thanks for the PR! 🚀
Sorry for the delay from my side for yet another time.
I had a look into the PR:
- What was the concern not to disable the
endpoint-slice-hints
webhook starting Kubernetes 1.31? Was is it only that during the 1.30 -> 1.31 upgrade for a Seed the webhook will be disabled right away but it will take 24h until all Services reconcile? If that's the case, then I think this is something we can tolerate and live with. The topology-aware routing is a cost-optimization feature, it should be fine if for 24h the corresponding Services in the Seed are best-effort topology-aware and not 100% topology-aware. Running theendpoint-slice-hints
webhook also incurs costs - mainly network costs and latency in the critical path for create/update of EndpointSlices. That's why I would suggest to disable the webhook starting K8s 1.31. - We would need to update the docs under
docs/operations/topology_aware_routing.md
. - We could make renaming of the
ReconcileTopologyAwareRoutingMetadata
more graceful by introducing the new func (for exampleReconcileTopologyAwareRoutingSettings
) and making the old func alias of the new one. My main motivation is to give extension folks some releases time to adapt to the new func. We always received the feedback that there are many breaking changes in the extension library and in other g/g pkgs.
Let me know if you see concerns. If you are out of capacity, I can help with addressing the review feedback.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @ialidzhikov Thanks for the feedback. I adopted the docs (
I am not sure about that. I would not disable the webhook until K8s version 1.32. because the rollout like you mentioned and as I have seen it is also documented that this feature can also be used by extensions. We should make sure that all extension uses the |
@dergeberl: The following tests failed, say
Full PR test history. Your PR dashboard. Command help for this repository. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
OK, let's disable the webhook starting K8s 1.32 to cover the migration concern and to give time extension to adapt to the new traffic distribution field. When the Seed K8s version is 1.32+, we disable the webhook. |
Hi @dergeberl , To speed up the process, I opened #11178. It is based on your work in this PR. I added you as co-author. |
Will be done in PR #11178 |
@dergeberl: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
How to categorize this PR?
/area networking
/area high-availability
/kind enhancement
cc @ialidzhikov
What this PR does / why we need it:
With kubernetes version
1.31.x
the ServiceTrafficDistribution got beta and enabled by default.ServiceTrafficDistribution
PreferClose
only uses zone information for routing th traffic without taking into account the allocatable CPUs see also Comparison withservice.kubernetes.io/topology-mode: Auto
This PR use the
ServiceTrafficDistribution
instead ofTopologyAwareHints
with the GRM webhook, iftopologyAwareRouting
is enabled and kubernetes version is 1.31 or above.The function was renamed from
ReconcileTopologyAwareRoutingMetadata
toReconcileTopologyAwareRouting
as this function now also changes settings in the spec.Which issue(s) this PR fixes:
Part of #10421
Special notes for your reviewer:
Release note: