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

ExternalTrafficPolicy: local not working well #11077

Closed
manuelbuil opened this issue Oct 11, 2024 · 1 comment
Closed

ExternalTrafficPolicy: local not working well #11077

manuelbuil opened this issue Oct 11, 2024 · 1 comment
Assignees

Comments

@manuelbuil
Copy link
Contributor

Environmental Info:
K3s Version:

Any

Node(s) CPU architecture, OS, and Version:

Any

Cluster Configuration:

2 nodes. For example: 1 server, 1 agent

Describe the bug:

When deploying a pod with an HTTP server and then a service of type LoadBalancer that uses that HTTP server, you will get 2 external IPs, which are the IPs of the nodes. If you change the config of the service to ExternalTrafficPolicy: local, the number of externalIPs is reduced to 1, which is the IP of the node where the pod is sitting. However, if you query the service using the other node IP, you'll still be able to reach it.

The reason is that svclb daemon is still running a pod in the node which does not have the HTTP server pod.

Steps To Reproduce:

  • Installed K3s:

Explained above

Expected behavior:

Traffic can't reach the node where the HTTP server pod is running when ExternalTrafficPolicy: local

Actual behavior:

Traffic can reach the node where the HTTP server pod is running when ExternalTrafficPolicy: local

Additional context / logs:

@fmoral2
Copy link
Contributor

fmoral2 commented Oct 16, 2024

validate revert here
#11078
#11080
#11081
#11082

@fmoral2 fmoral2 closed this as completed Oct 16, 2024
@github-project-automation github-project-automation bot moved this from To Test to Done Issue in K3s Development Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

2 participants