Good morning/afternoon everyone!
I’m very happy deploying K8S using RKE2/Rancher.
Everything is working flawlessly except one thing: the physical network used for communication between nodes (ie. inter nodes communication).
I have, on one of my setups, two nodes: 1 server and 1 agent.
I installed both of them following the general documentation.
These two machines are connected on two different physical networks:
- One interface goes to our router with a public IP address (directly accessible from the internet)
- Another interface goes to a switch and a private network.
The private network has been designed to be way faster and only go through a switch without firewall rules.
When I declared the agent node and linked it to the server node, I used the private IP address. However, for a reason I can’t explain, now both nodes communicate using their public IPs. If believe Flannel is using the first interface by default but I’m not 100% sure.
How to have the nodes to communicate on the private network?
I read RKE2 server config:
And I’m not clear about the impact of changing node-external-ip/node-ip values:
–node-ip value, -i value
(agent/networking) IPv4/IPv6 addresses to advertise for node
(agent/networking) IPv4/IPv6 external IP addresses to advertise for node
First of all, when I change these values, they are not necessarily directly visible even after restarting RKE2 agent/server. And I’m not sure they are the right elements (or the only elements) to modify.
Maybe it’s a Rancher or Flannel setting?
Can it be done from the Rancher UI?
I tried to find the solution but there are several answers on the web and it’s not clear:
(I did search for more, but can only have two links in a post of this forum)
Any help giving me the right approach with RKE2 to have inter-node communication using my private network (and/or specific interface) would be helpful.
Thank you very much all!