I'm building a Talos Linux cluster for the first time on my laptop, using Oracle VirtualBox for virtualization. Since I work in a hybrid setup, switching between on-site and home networks, I'm facing challenges in configuring the networking for my cluster. On-site, I have access to Ethernet and Wi-Fi, while at home, I rely solely on Wi-Fi. My priority is that each Talos node must have internet access, no matter which network I'm using. I thought about setting static IPs for the nodes to work across different networks, but I'm uncertain if that's the right move. What do you all suggest for managing networking in a Talos-based cluster under these varying conditions?
3 Answers
Have you considered using Tailscale? It creates a secure mesh network which could simplify connecting your nodes regardless of the network you're on.
You might want to set up a Host-only adapter alongside a NAT adapter for your Talos nodes. This way, each node can have one interface with a fixed IP (for communication on the host machine) and another that uses DHCP for internet access. It should help you manage the different network environments!
You could also look into using Teleport for your cluster. It can help manage access and might solve some of your networking issues.

Thanks! That sounds like a plan. I'll give it a shot!