Skip to content

Commit dc2c30e

Browse files
authored
Merge pull request #44239 from adityasamant25/issue-40645
Add a note about minikube tunnel for Docker Desktop
2 parents 37f90b4 + 65e1dc9 commit dc2c30e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ <h3>Load Balancing</h3>
156156
<p>Next, we’ll do a <code>curl</code> to the exposed IP address and port. Execute the command multiple times:</p>
157157
<p><code><b>curl http://"$(minikube ip):$NODE_PORT"</b></b></b></code></p>
158158
<p>We hit a different Pod with every request. This demonstrates that the load-balancing is working.</p>
159+
{{< note >}}<p>If you're running minikube with Docker Desktop as the container driver, a minikube tunnel is needed. This is because containers inside Docker Desktop are isolated from your host computer.<br>
160+
<p>In a separate terminal window, execute:<br>
161+
<code><b>minikube service kubernetes-bootcamp --url</b></code></p>
162+
<p>The output looks like this:
163+
<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>
164+
<p>Then use the given URL to access the app:<br>
165+
<code><b>curl 127.0.0.1:51082</b></code></p>
166+
{{< /note >}}
159167
</div>
160168
</div>
161169

0 commit comments

Comments
 (0)