Unable to use service name for load balancer in kubernetes

5/8/2020

I am trying to use service name in my application to redirect to the correct pods in kubernetes.

The pods of type NodePort is working properly. (i.e. app1.qa.svc does redirects me to the correct application.

However it does not work on type LoadBalancer. Is there a way to do it?

enter image description here

Error:

I am getting a java.net.UnknownHostException: app4.qa.svc

-- shadow
kubernetes

0 Answers