hetzner-kube icon indicating copy to clipboard operation
hetzner-kube copied to clipboard

Metallb Network Load balancer

Open EamonKeane opened this issue 6 years ago • 6 comments

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 avatar Sep 30 '18 16:09 EamonKeane

@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?

mavimo avatar Oct 18 '18 07:10 mavimo

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 avatar Oct 18 '18 07:10 EamonKeane

@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 avatar Oct 18 '18 07:10 mavimo

@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

EamonKeane avatar Oct 18 '18 07:10 EamonKeane

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

tckb avatar Oct 21 '19 20:10 tckb

https://community.hetzner.com/tutorials/install-kubernetes-cluster/

A tutorial with metallb/kubernetes on hetzner cloud maybe helpful

czimnick avatar Oct 21 '19 21:10 czimnick