service dns name doesn't resolve from inside the pod
From a pod in default, curl http://payments:8080/health just hangs and then says Could not resolve host: payments. The Service is called payments but it's in namespace backend. From my laptop with port-forward it works fine. kubectl get svc -n backend shows the service with a ClusterIP. CoreDNS pods are Running. Why doesn't the short name resolve? I can ping the Service IP from the node, just not resolve the name.
4 replies