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

Add the warning for externalTrafficPolicy=Local #351

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

manuelbuil
Copy link
Contributor

Describe how we could preserve the client source IP

@@ -68,6 +68,10 @@ If the traffic to the external IP is subject to [Network Address Translation (NA

Create a [Service of type LoadBalancer](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) in K3s.

:::warning Known Issue
If external traffic reaches the node using a NAT (e.g. in public clouds) and you require `externalTrafficPolicy=local` for purposes such as client source IP preservation, please do not define the k3s config `node-external-ip` for any of the nodes, as that will not work correctly
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: punctuation period at the end

without setting the node-external-ip people will have to set the tls-san correctly to be able to join extra nodes correct?

Copy link
Member

@brandond brandond Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having node-external-ip set would be necessary for flannel to work properly, if all the nodes aren't on the same private network. So I guess this would be a tradeoff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly. People should use the internal-ip to join the cluster

@manuelbuil manuelbuil merged commit a42bd3c into k3s-io:main Nov 14, 2024
3 checks passed
@manuelbuil manuelbuil deleted the externalTrafficPolicy branch November 14, 2024 09:11
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.

4 participants