Question

Custom loadbalancer?

Posted January 19, 2020 230 views
Load Balancing Kubernetes

Hi,
I have created a Kubernetes cluster with the help of DOs’ Kubernetes service.
Every time I create a load balancer service inside my cluster, a load balancer from DO gets created which is a paid service. We currently don’t need that load-balancing performance, and I am not sure how to spin up a free load balancer.

Is there some way this can be achieved?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

4 answers

I use a service mesh, Linkerd, which is on the DO Marketplace and easily installable in existing clusters. Then I use an ingress controller to handle the external traffic coming in. It can sustain drains and upgrades with Linkerd. It does so by using the Ingress kind and proper annotations.

https://linkerd.io/2/tasks/using-ingress/

https://linkerd.io/2/features/load-balancing/

https://marketplace.digitalocean.com/apps/linkerd

Hi there,

You can change the services type to NodePort or ClusterIP if you do not want a load balancer to be provisioned.

You can then choose whatever tools you wish to manage traffic externally to those services.

However node IPs are guaranteed to change during upgrades and recycles so setting static IPs in an external load balancer is not recommended.

We currently do not offer free load balancers.

Regards,

John

Thanks for the reply!
So if I were to install my own Kubernetes cluster onto a vm then I could spin up free load balancers?

If I were to use a paid load balancer, is it possible to use one load balancer to route all traffic in the cluster?

@deepinthought Thank you for the reply!

I went and created nginx-ingress controller! One load balancer is perf fine!
Will check linkerd in the future!

Submit an Answer