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

Allow ServiceLB to honor ExternalTrafficPolicy=Local #6726

Merged
merged 3 commits into from
Jan 27, 2023

Conversation

brandond
Copy link
Member

@brandond brandond commented Jan 12, 2023

Proposed Changes

Allow ServiceLB to honor ExternalTrafficPolicy. Previously, ServiceLB violated the LoadBalancer spec by not properly delivering traffic only to the node-local endpoints of the service when the ExternalTrafficPolicy was set to Local. It would instead advertise the addresses of all nodes eligible to run ServiceLB, and forwarded traffic to all cluster endpoints.

Ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#:~:text=externaltrafficpolicy%20(string)

Types of Changes

bugfix; enhancement

Verification

Testing

Linked Issues

User-Facing Change

ServiceLB now honors the Service's ExternalTrafficPolicy. When set to Local, the LoadBalancer will only advertise addresses of Nodes with a Pod for the Service, and will not forward traffic to other cluster members.

Further Comments

@brandond brandond force-pushed the servicelb_externaltrafficpolicy branch 4 times, most recently from 23a802e to 50e4142 Compare January 19, 2023 00:07
@brandond brandond changed the title [WIP] Allow ServiceLB to honor ExternalTrafficPolicy=Local Allow ServiceLB to honor ExternalTrafficPolicy=Local Jan 19, 2023
@brandond brandond force-pushed the servicelb_externaltrafficpolicy branch from 50e4142 to cc544c0 Compare January 19, 2023 00:21
@brandond brandond marked this pull request as ready for review January 19, 2023 00:21
@brandond brandond requested a review from a team as a code owner January 19, 2023 00:21
@brandond brandond requested a review from briandowns January 26, 2023 22:38
@brandond brandond force-pushed the servicelb_externaltrafficpolicy branch from cc544c0 to bb3208b Compare January 26, 2023 23:48
@brandond brandond merged commit 1c6fde9 into k3s-io:master Jan 27, 2023
@brandond brandond deleted the servicelb_externaltrafficpolicy branch June 6, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants