Question

Use pre-provisioned load ballancer for ingress

Posted May 16, 2019 324 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

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.

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

Submit an Answer