Testing Kubernetes using minikube on MacOS
The endpoints of the service is not showing POD IPs.You need to expose pods via a LoadBalancer type service. Instead of using a service yaml use below command.
kubectl expose deployment example --type=LoadBalancer --port=8080 --target-port=3000
And then you can get the url via below command and use it browser to access the application.
minikube service example
Edit:
The go app had a hard-coded value for address which was bound to 127.0.0.1
.Because of the hardcoding it was not accessible from inside the cluster as well which was verified by curl to 10.100.117.7:3000
from another pod on the cluster.Removing that hardcoding solved the problem.