Skip to content

Commit 462a4f7

Browse files
authored
Merge pull request #41260 from fyu17/patch-1
Update expose-intro.html to add notes for minikube tunnelling with Docker
2 parents 2a4a506 + e08eb51 commit 462a4f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ <h3>Create a new Service</h3>
114114
<code><b>echo "NODE_PORT=$NODE_PORT"</b></code></p>
115115
<p>Now we can test that the app is exposed outside of the cluster using <code>curl</code>, the IP address of the Node and the externally exposed port:</p>
116116
<p><code><b>curl http://"$(minikube ip):$NODE_PORT"</b></code></p>
117+
{{< note >}}<p>If Docker is the container runtime, a minikube tunnel is needed. This is because Docker Desktop does not support ports. <br>
118+
<p>In a separate terminal window, execute:<br>
119+
<code><b>$ minikube service kubernetes-bootcamp --url</b></code></p>
120+
<p>The output looks like this:
121+
<pre><b>http://127.0.0.1:51082<br>! Because you are using a Docker driver on darwin, the terminal needs to be open to run it.</b></pre></p>
122+
<p>Then use the given URL to access the app:<br>
123+
<code><b>$ curl 127.0.0.1:51082</b></code></p>
124+
{{< /note >}}
117125
<p>And we get a response from the server. The Service is exposed.</p>
118126
</div>
119127
</div>

0 commit comments

Comments
 (0)