Question

Custom loadbalancer?

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?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted Answer

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

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

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?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel