How to access the minikube created service from host?

I use minikube running k8s cluster on my macOS:

and I added a nginx-service:

$ kubectl get services
NAME            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
kubernetes      ClusterIP        <none>        443/TCP   10d
nginx-service   ClusterIP   <none>        80/TCP    5s

I cannot access the cluster-ip:

in my macOS there is no interface with a IP 10.x.x.x:

$ ifconfig | grep 10.
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200

The cluster ips are internal to kubernetes and cannot be accessed directly from the host. You need to expose them to access them.

For more information see the docs entry on accessing services: