<p>I am learning kubernetes and minikube, and I am following this tutorial:</p>
<p><a href="https://minikube.sigs.k8s.io/docs/handbook/accessing/" rel="nofollow noreferrer">https://minikube.sigs.k8s.io/docs/handbook/accessing/</a></p>
<p>But I am running into a problem, I am not able to load the exposed service. Here are the steps I make:</p>
<pre><code>minikube start
</code></pre>
<p>The cluster info returns</p>
<pre><code>Kubernetes control plane is running at https://127.0.0.1:50121
CoreDNS is running at https://127.0.0.1:50121/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
</code></pre>
<p>Then I am creating a deployment</p>
<pre><code>kubectl create deployment hello-minikube1 --image=k8s.gcr.io/echoserver:1.4
</code></pre>
<p>and exposing it as a service</p>
<pre><code>kubectl expose deployment hello-minikube1 --type=NodePort --port=8080
</code></pre>
<p>When I list the services, I dont have a url:</p>
<pre><code>minikube service list
</code></pre>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>NAMESPACE</th>
<th>NAME</th>
<th>TARGET PORT</th>
<th>URL</th>
</tr>
</thead>
<tbody>
<tr>
<td>default</td>
<td>hello-minikube1</td>
<td>8080</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<p>and when I try to get the url, I am not getting it, seems to be empty</p>
<pre><code>minikube service hello-minikube1 --url
</code></pre>
<p>This is the response (first line is empty):</p>
<pre><code>🏃  Starting tunnel for service hello-minikube2.
❗  Because you are using a Docker driver on darwin, the terminal needs to be open to run it.
</code></pre>
<p>Why I am not getting the url and cannot connect to it? What did I miss?</p>
<p>Thanks!</p>

John P
<p>Please use <code>minikube ip</code> command to get the IP of minikube and then use port number with it.</p>
<p>Also, refer below link:</p>
<p><a href="https://minikube.sigs.k8s.io/docs/handbook/accessing/#:%7E:text=minikube%20tunnel%20runs%20as%20a,on%20the%20host%20operating%20system" rel="nofollow noreferrer">https://minikube.sigs.k8s.io/docs/handbook/accessing/#:~:text=minikube%20tunnel%20runs%20as%20a,on%20the%20host%20operating%20system</a>.</p>
