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

K8s >= 1.21, hostNetwork: true needs to be set for tcp-services and udp-services to work. #378

Closed
martyav opened this issue Jan 20, 2023 · 3 comments
Assignees

Comments

@martyav
Copy link
Contributor

martyav commented Jan 20, 2023

Creating an issue based on an internal request.

The documentation outlines that hostNetwork: true is no longer the default for k8s 1.21 and up. However, this will cause problems if you have tcp-services and/or udp-services configured. The documentation should note that hostNetwork: true needs to be set for tcp-services and udp-services to work.

Business impact:

After upgrading to k8s 1.21.x, tcp-services and udp-services stop working.

@martyav martyav self-assigned this Jan 20, 2023
@martyav
Copy link
Contributor Author

martyav commented Jan 20, 2023

The original ask points to a docs page in rancher.com/docs/rke

Although we have similar language in https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-resources-setup/load-balancer-and-ingress-controller/ingress-configuration#docusaurus_skipToContent_fallback and the corresponding page for 2.6, it's not exactly the same. In any case, none of these pages have a warning about TCP- or UDP-services not being able to run unless hostNetwork is set to true.

Related: I'm not sure if the issue is general or confined to RKE. The problem was validated, on RKE:

Note: this comment notes that if NetworkMode is set to hostNetwork, the hostNetwork is still set to true: rancher/rancher#35943 (comment)

@martyav
Copy link
Contributor Author

martyav commented Jan 20, 2023

Related to https://github.com/rancher/docs/issues/3420

As noted in that thread, this affects Rancher 2.6 and above.

@btat
Copy link
Contributor

btat commented Jan 20, 2023

The source code for rancher.com/docs/rke is currently still in the rancher/docs repo, but as we're about to launch the Docusaurus site for RKE updates for the RKE portion should be made to https://github.com/rancher/rke1-docs instead.

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

No branches or pull requests

2 participants