By kvosdev
When a load balancer is created by the cloud controller manager, it takes on same region as the kubernetes cluster. Wouldn’t it make sense to have it also be set to the same project and vpc as the cluster?
Some context: I am using the Helm provider of Terraform to install ingress-nginx on my kubernetes cluster. I would like to make the load balancer that is created to be part of the same project and vpc that the cluster is part of. Since I am using Terraform to provision, manual interaction is not an option.
I have taken a look at the do-ccm project. As far as I’m understanding, there is no way for me to force a loadbalancer service to be part of a given project or vpc. When I take a look at the do-ccm getting started guide, I do see a paragraph about using a custom vpc by setting an environment variable. However, it seems like this needs to be set up when creating the cluster. I’m using doks, so I’m not the one creating the cluster. To be clear, the cluster that i provision with Terraform is part of a custom vpc. Furthermore, the available loadbalancer annotations don’t cover the project or vpc (unlike the loadbalancer name, for example). The ingress-nginx documentation doesn’t help me, nor does googling for something related.
Maybe I’m just not getting it. Is there some way for me to set the project and vpc of the loadbalancer?
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!
DigitalOcean cloud controller manager runs service controller, which is responsible for watching services of type LoadBalancer and creating DO loadbalancers to satify its requirements. Here are some examples of how it’s used.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.