When we’re running a Kubernetes cluster on our machine and we want to connect to a container, we can’t connect through localhost. Instead, we need to retrieve our minikube’s IP and use the IP in place of localhost.

Before

localhost:3000

After

192.123.45.6:3000