Network setup on bare-metal nodes with single public interface and private VLAN? #7844
Replies: 2 comments 12 replies
-
I don't know much about Hetzner, probably someone else might chime in. Talos has support for
Talos at the moment doesnt support firewall, but that is being worked on (#4421), so you can't limit where it binds, but you can make sure inter-node communication goes over private VLAN/subnet. See https://www.talos.dev/v1.5/introduction/prodnotes/#multihoming. Also CNI might need to be adjusted (depending on the CNI), for Flannel you might need to check #7754 |
Beta Was this translation helpful? Give feedback.
-
@smira "hcloud" is indeed Hetzner's VM offering, and its a different (and probably easier :) setup than bare-metal.
Then I hope the Talos endpoints are intended to be exposed on a public endpoint? :) Thanks for pointing out that link I did not realize it was called "multihoming". Based on that I should also set
However I am still confused about kubelet.nodeIP. The comment in the generated config says: However, the multihoming doc says: "Stable IP addressing for kubelets (i.e., nodeIP) is not strictly necessary but highly recommended as it ensures that, e.g., kube-proxy and CNI routing take the desired routes. Analogously to etcd, for kubelets this is controlled via machine.kubelet.nodeIP.validSubnets" I am having trouble consolidating those two descriptions :)
I played with k3s and microk8s previously and I indeed had a lot of trouble until I found out how to tell flannel which interface to use. I was considering using Cilium if nothing else because someone else has tried it on Hetzner bare-metal before: https://datavirke.dk/posts/bare-metal-kubernetes-part-1-talos-on-hetzner/ |
Beta Was this translation helpful? Give feedback.
-
I realize this is a bit of a newbie question, and not even entirely specific to Talos, but I will give it a try anyway :)
We are trialing self-hosted github action runners on bare metal Hetzner servers, and I wanted to try to use Talos to minimize the need for ops.
Each server has a single network interface (say eth0) with a (fixed) public IP4 address. I figured it would be a bad idea for nodes to communicate via nodes over public IP's so I setup a "vSwitch"/VLAN.
Lets say the public IP of each node N is 100.1.1.. and that I give each of them a VLAN IP of 192.168.1..
Now I am wondering:
Answers to the above as well as any other n00b tips would be greatly appreciated :) And before someone comments on needing proper ops for a production setup, I just want to clarify that we are talking test runners only here without access to any sensitive data or the ability to deploy to any customer systems :)
Beta Was this translation helpful? Give feedback.
All reactions