Same load balancer multiple Kubernetes Clusters

I have Kubernetes Cluster that contains a Nginx ingress controller. This controller is tied a Digital Ocean load balancer and it is being working great since a while. Now I’m want to deploy a new Kubernetes Cluster but reuse the Digital Ocean Load Balancer. Is there a way to achieve it? thanks

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.

Hi there,

I believe that it would be best to use separate load balancers, mainly because the DigitalOcean managed Load Balancers operate at Layer 4, meaning they balance based on IP protocol data, this makes it challenging since we can’t rely on HTTP path or host headers for routing decisions directly on the load balancer level.

For most use cases involving multiple Kubernetes clusters on DigitalOcean (including other managed Kubernetes platforms), it’s best to allocate a separate load balancer for each cluster.

Here are a few reasons why using multiple load balancers would be more convenient:

  1. Simplicity: Each Kubernetes cluster can manage its own load balancer without any intricate setup, making the infrastructure easier to understand and manage:

  1. Isolation: Separate load balancers ensure that potential issues or outages in one cluster/load balancer don’t affect the other clusters. This is especially important for maintaining high availability and resilience in your infrastructure.

  2. Scalability: As your traffic grows, each cluster can be scaled independently based on the needs of its respective traffic.

  3. Maintenance: With separate load balancers, maintenance tasks, updates, or any other operational tasks can be performed on one cluster without affecting the availability or performance of the other.

  4. Health Monitoring: Each load balancer can have its health checks tailored to the specific needs and services of its cluster. This ensures more accurate health monitoring and better traffic distribution.

  5. Cost vs. Complexity: While there’s an argument to be made about saving costs by using a single load balancer, the added complexity, potential performance issues, and maintenance overhead could lead to increased operational costs in the long run. Often, the benefits of isolation, simplicity, and performance outweigh the cost savings of a single load balancer.

Hope that this helps!

Try DigitalOcean for free

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

Sign up

Featured on Community

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