Pod trying to curl a service : "Could not resolve host"
Hey, I’ve tried getting information about DNS discovery.
I thought maybe I need to configure this, but by the docs, it seems this is supposed to be built-in.
In my pod, I tried to curl against the load balancer I created for him.
When I curl against the cluster IP & Internal IP of the service - it’s working.
but when I try to use the service name (eg: curl http://ranks-service:80/rank)
I get the error: “curl: (6) Could not resolve host: ranks-service”
I checked /etc/hosts:
::1 localhost ip6-localhost ip6-loopback
I would really appreciate having some help with this, Thanks!