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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.