# Layer 4 load-balancer without Cloud-Provider?

**URL:** <https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564>\
**Category:** SUSE Rancher Prime\
**Created:** [June 18, 2019, 11:49am UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564 "2019-06-18T11:49:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSandro](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/msandro/32/5032_2.png) [@MSandro](https://forums.suse.com/u/MSandro)\
**Post date:** [June 18, 2019, 11:49am UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564/1 "2019-06-18T11:49:46Z")

</div>

Hi,  
I am currently switching my Rancher Cluster from Single-Node to Multi-Node HA mode.  
Now I am running a cluster with 3 Nodes from 3 different providers.  
I and my colleagues are currently creating a system to rent Docker containers and also want to provide high availability solutions, so each node should ideally run 24/7, so cloud providers are not suitable for our purposes. The price performance ratio of most cloud-providers also does not meet our expectations.

Hosting all nodes at one provider didn’t make sense for me, because if my hoster has to do maintenance work and all my VMs are on the same server, all of them are offline.  
High availability? no 🤣  
I am rent some vservers by Contabo and I already was in souch situation.

And now I am searching for an Load-Balancing solution. I already have a DNS server and plan to rent a 4th server just as LoadBalancer, the choice of the provider is very decisive, because the server really has to be 99.9% fail-safe. In the Racher documentation I read that Layer 4 load balancing would only be possible via cloud providers, so I am very indecisive and looking for advice.

Has anyone of you been in a similar situation? I would be glad if someone shares his experiences.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![flaccid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/flaccid/32/46_2.png) [@flaccid](https://forums.suse.com/u/flaccid)\
**Post date:** [June 25, 2019, 10:20am UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564/2 "2019-06-25T10:20:59Z")

</div>

MetalLB which is layer 2.

---

<div class="post-metadata">

**Author:** ![2stacks](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/2stacks/32/5067_2.png) [@2stacks](https://forums.suse.com/u/2stacks)\
**Post date:** [June 25, 2019, 6:26pm UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564/3 "2019-06-25T18:26:33Z")

</div>

I set something up using Kubernetes external-dns [https://github.com/kubernetes-incubator/external-dns](https://github.com/kubernetes-incubator/external-dns) and a seperate NGINX load balancer - [https://github.com/2stacks/terraform-nginx-lb](https://github.com/2stacks/terraform-nginx-lb)

---

<div class="post-metadata">

**Author:** ![MSandro](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/msandro/32/5032_2.png) [@MSandro](https://forums.suse.com/u/MSandro)\
**Post date:** [June 27, 2019, 7:48am UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564/4 "2019-06-27T07:48:24Z")

</div>

Thank you very much for your suggestions.

---

<div class="post-metadata">

**Author:** ![konvergence](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/konvergence/32/4070_2.png) [@konvergence](https://forums.suse.com/u/konvergence)\
**Post date:** [July 18, 2019, 11:45am UTC](https://forums.suse.com/t/layer-4-load-balancer-without-cloud-provider/14564/5 "2019-07-18T11:45:47Z")

</div>

I use [k8s.gcr.io/kube-keepalived-vip](http://k8s.gcr.io/kube-keepalived-vip)  
because MetalLB is not better on Layer 2 mode
