This question is very old, but I am facing some Eureka issues too.
I have deployed a workload: eureka on a namespace: microservices
my workload has 4 Pods eureka-0 to eureka-3 on each node of the cluster (I have a cluster with one manager node, and 4 worker nodes) I have added a loadbalancer (which I think I have not used yet) and Rancher created a discovery service named eureka.
I know that Rancher/kubernetes created these host names:
eureka-[0…3].eureka.microservices.svc.cluster.local and eureka.microservices.svc.cluster.local, last one I believe is being used by the other Pod’s with Eureka’s client because the clients are able to register on the different eureka instances. The thing is I was trying ti use the generated names for each Pod to communicate between each Eureka instances but I realized after opening a shell on each pod that if I ping any eureka-[0…3].eureka.microservices.svc.cluster.local , only itself will resolve. so what is the point of those names if within the cluster they do not resolve?
How can I make the generated names (workload name plus domain) to be resolved within the cluster?
Thanks in advance,