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

How to set hostNetwork:true for k8s 1.21 and up #455

Closed
mrolmedo opened this issue Feb 28, 2023 · 6 comments · Fixed by #732
Closed

How to set hostNetwork:true for k8s 1.21 and up #455

mrolmedo opened this issue Feb 28, 2023 · 6 comments · Fixed by #732
Assignees
Milestone

Comments

@mrolmedo
Copy link

mrolmedo commented Feb 28, 2023

Summary:
In K8s 1.21 and up, the ingress controller no longer runs in hostnetwork:true. The docs for RKE and [Rancher] outlines that. Based on #378, and (rancher/rancher#35943 (comment)), IMHO, the docs should include the steps on how to set up or how to modify this parameter in Rancher Custom cluster or clusters launched with rke up. I´d also include more details about the tcp udp services impacted. For instance, For Kubernetes v1.21 and up, all services exposed via TCP or UDP, set up in ConfigMap tcp-services or udp-services in the ingres-nginx namespace, will stop working if the hostnetwork:true is not set.
Thanks for your attention.

SURE-6006

@btat btat added this to the Next milestone Mar 2, 2023
@martyav
Copy link
Contributor

martyav commented Apr 17, 2023

@snasovich would you be able to assist with instructions on how to set hostNetwork:true for k8s 1.21 and up (or ping somebody who can)?

@snasovich snasovich added the JIRA label Apr 24, 2023
@snasovich
Copy link

@martyav , hopefully @kinarashah can help with this.

@kinarashah
Copy link
Member

@martyav HostNetwork can be configured by setting network options in the cluster.yml https://rke.docs.rancher.com/config-options/add-ons/ingress-controllers#configuring-network-options

ingress:
  provider: nginx
  network_mode: hostNetwork
  // other fields

@martyav
Copy link
Contributor

martyav commented Apr 25, 2023

@kinarashah is there a way to do this through the Rancher UI, or do you have to edit the cluster yaml?

@martyav
Copy link
Contributor

martyav commented Jul 18, 2023

@kinarashah Just following up with the last question. See above. Thank you!

@kinarashah
Copy link
Member

@martyav Apologies for missing the earlier ping, we do not expose this field in UI so it'll have to be via Edit as Yaml option. There are only few things that can be changed in UI for ingress, like enabling/disabling nginx ingress and default backend.

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 a pull request may close this issue.

5 participants