<p>I launched minikube with the docker driver on a remote machine and I have used a nodePort service for a particular pod. I believe nodePort exposes the port on the minikube docker container. On doing minikube IP it gave me the IP of the docker container in which minikube runs. How can I port map the port from the minnikube container to the host port so that I can access it remotely. A different approach would other than using driver=none or restarting minikube is appreciated as I do not want to restart my spinnaker cluster.</p>

aayush.ag21
<p>There is a  <code>minikube service &lt;SERVICE_NAME&gt; --url</code> command which will give you a url where you can access the service. In order to open the exposed service, the <code>minikube service &lt;SERVICE_NAME&gt;</code> command can be used:</p>
<pre><code>$ minikube service example-minikube
Opening kubernetes service default/hello-minikube in default browser...
</code></pre>
<p>This command will open the specified service in your default browser.</p>
<p>There is also a <code>--url</code> option for printing the url of the service which is what gets opened in the browser:</p>
<pre><code>$ minikube service example-minikube --url
http://192.168.99.100:31167
</code></pre>
<p>You can run <code>minikube service list</code> to get list of all available services with their corresponding URL's. Also make sure the service points to correct pod by using correct <code>selector</code>.</p>
<p>Try also to execute command:</p>
<pre><code>ssh -i ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip) -L *:30000:0.0.0.0:30000
</code></pre>
<p>Take a look: <a href="https://github.com/kubernetes/minikube/issues/877" rel="noreferrer">minikube-service-port-forward</a>, <a href="https://stackoverflow.com/questions/40767164/expose-port-in-minikube/40774861#40774861">expose-port-minikube</a>, <a href="https://github.com/kubernetes/minikube/blob/master/docs/minikube_service.md" rel="noreferrer">minikube-service-documentation</a>.</p>
