Domain names attaching to multiple loadbalancers

Posted August 22, 2020 340 views
DockerLoad BalancingKubernetesDigitalOcean Managed Load Balancers

Hi, I am new at Kubernetes, so forgive me if this is obvious.

I am have an issue where I have configured my entire cluster, and it works just fine when I use the external IP addresses (I have two loadbalancers for two different services).

The problem is now that I have configured and attached domain names one for the client ui and another for the api, I am having a problem where the domain names tend to switch at time when queried in the browser, the request from the api goes to the client and the request from the client goes to the api and then switches back to normal after sometime. It seems really weird to me because it interchanges without any changes to the system.

The domain and subdomain do share the same SSL certificate, but I don’t think that should be an issue, I might be wrong.

1 comment

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, yes that is exactly what is happening, I deleted the domains, and restricted the deployments to specific nodes, and then added and pointed the domains to the required loadbalancers, and I haven’t had the same issue repeat itself yet. Thanks