rancher / rke1-docs

1 stars 13 forks source link

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

Open martyav opened 1 year ago

martyav commented 1 year ago

This was from an internal request directed at the Rancher team, however the page they linked was pointed at an RKE doc.

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.

I currently have a Rancher PR open at https://github.com/rancher/rancher-docs/pull/383. Suggest using similar wording.

martyav commented 1 year ago

The problem has been validated in RKE: