hetzner-kube
hetzner-kube copied to clipboard
Metallb Network Load balancer
This looks great. I'm just curious whether you considered metallb for load balancing? https://github.com/google/metallb
This would mean zero changes required to yaml when moving from say GKE to hetzner, unless I'm missing something.
@EamonKeane when I investigate MetalLB project some time ago it need to have control of router (ad need to have a router speaking GDB protocol inside the network).
Hetzner do not offer this kind of infrastructure (as far I know), to you have time to investigate if it can be used or have some suggestion about MetalLB usage?
Thanks @mavimo . Metallb also has a layer 2 mode which assigns node IPs to your reverse proxy (e.g. nginx-ingress). I have it working on a (one node) cluster using the VM IP that Hetzner assigned. For whatever reason, using a second Floating IP assigned to the same VM doesn't work.
@EamonKeane interesting! Can you share some more detail (if possible) of your current configuration? Config files, how do you setup it & c should be really useful information to investigate it :)
@mavimo sure. Steps to reproduce what I have are:
- Create a one node hetzner cluster (I use 8 core/32 gb ram)
- Install kubeadm (I used 1.12.1 and weavenet but not sure that matters)
- Change the assigned VM IP on this line: https://github.com/EamonKeane/k8s-cluster-services/blob/master/cluster-svc/values.yaml#L19
- Helm install the cluster chart (you only need to have metallb and nginx-ingress set to enabled) https://github.com/EamonKeane/k8s-cluster-services/tree/master/cluster-svc
- Go to
$VM_IP
and you should see the default backend of nginx-ingress
I am trying to set this up. having an external LoadBalancer is absolutely essential for me. Anyone has successful set up with a two node cluster ? @EamonKeane
https://community.hetzner.com/tutorials/install-kubernetes-cluster/
A tutorial with metallb/kubernetes on hetzner cloud maybe helpful