Minikube service

Minikube has a service command to make it very easy to both get and access this service. While you could get the IP address for your minikube host with minikube ip and put that together with the previous port, you could also use the minikube service command to make a combined URL in one command:

minikube service flask --url

This should return a value like this:

http://192.168.64.100:31505

And minikube has the helpful option of opening a browser window with your default if you use the following command:

minikube service flask
Opening kubernetes service default/flask in default browser...

If you had a service enabled, but no Pods are backing that service, then you would see a connection refused message.

You can list all the ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.