Question

Is there a possibility to assign a floating ip address to a Kubernetes Load Balancer?

Posted November 18, 2021 93 views
Kubernetes

I have multiple domains set with glue records and those records point to my droplets. I want to migrate to Kubernetes but how can I avoid the trouble to changing ip addresses of all these domains?

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.

×
Submit an Answer
1 answer

Hi there,

As per the documentation here, you currently cannot assign a floating IP address to a DigitalOcean Load Balancer.

I would personally make the DNS changes in batches rather than doing them all at once. That way I would be able to test the setup with a small set of domains rather than doing them all at once.

Alternatively, if you do not want to make those changes you could add an extra unmanaged HAProxy load balancer installed on a Droplet in front of the Kubernetes Load Balancer:

https://www.digitalocean.com/community/tutorials/an-introduction-to-haproxy-and-load-balancing-concepts

That way you would not have to make a DNS change but there will be an extra unnecessary component in front of your Kubernetes Cluster.

Best,
Bobby

by Mitchell Anicas
An introduction to basic load balancing concepts and terminology, using HAProxy, with some examples.