-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KEP-2086: Add internalTrafficPolicy: PreferLocal #3010
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: danwinship 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 |
These was requested lately in slack and some other gihub issues ... and is a thing in Openshift, so there is proof of feasibility |
Is it going to confuse users if we only have PreferLocal for internal but not external traffic policy? |
Maybe... but adding FWIW, OpenShift actually also has prefer-local external traffic policy as a local hack. A bit more detail here but it's basically the same as the internal case for DNS: we want to use (Maybe |
I think this is a very common use of the feature.
💯 completely agree with this. |
Fwiw the original implementation of |
How so? I guess, if topology aware routing worked down to the node level, then you wouldn't need |
So it seems like maybe I should close this PR, let internal traffic policy (with just Cluster vs Local) go to GA on its original schedule, and file a new PR adding |
Right. Further discussion on #3016 |
One-line PR description:
Adds
PreferLocal
option tointernalTrafficPolicy
Issue link: #2086
Other comments:
OpenShift is already implementing this behavior as a hardcoded hack for DNS. The behavior of
internalTrafficPolicy: Local
is useless for us; OpenShift clusters do software updates regularly, and we don't want to cause rolling DNS failures across the cluster every time we update the CoreDNS DaemonSet.I see in some previous discussions people talked about "SNAT semantics" as being a problem, but that only applies to external traffic policy; internal traffic doesn't get SNATted either way.
I left the second user story as still wanting
Local
semantics, notPreferLocal
, since I guess some people may still want that sometimes...cc @andrewsykim @robscott @aojea @Miciah @thockin