Use pre-provisioned load ballancer for ingress

May 16, 2019 190 views
Kubernetes

Hi,

I am deploying our infrastructure into DO k8s. However, especially on testing environment, when we change our services relatively frequently, we are fighting with DO load balancers. For example, when I uninstall our Helm chart based app and reinstall it, the old load balancer used by ngix-ingress is left unused and new one is provisioned.

Then I must manually delete old LB and set DNS records to new LB. And next time again. Is there any way to make load ballancers reusable and to tell ingress controller, that I want to use this already existing load ballancer?

Thanks,

Jindrich

1 Answer

This is not currently possible.

https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/docs/controllers/services/annotations.md

As per the annotations available as mentioned in the above link, DigitalOcean currently doesn't allow us to mention loadbalancer identifier to select a pre-provisioned loadbalancer.

You may raise a feature request by adding an issue in the below repo

https://github.com/digitalocean/digitalocean-cloud-controller-manager

Have another answer? Share your knowledge.