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

Open
manuelbuil opened this issue Oct 11, 2024 · 0 comments
Open

ExternalTrafficPolicy: local not working well #11077

manuelbuil opened this issue Oct 11, 2024 · 0 comments
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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Test
Development

No branches or pull requests

2 participants