Issue 40645 - Added a note about minikube tunnel for Docker Desktop

pull/44239/head
Aditya Samant 2023-12-06 18:22:05 +05:30
parent e2bf851317
commit 65e1dc9059
1 changed files with 8 additions and 0 deletions

View File

@ -156,6 +156,14 @@ kubernetes-bootcamp 1/1 1 1 11m
<p>Next, well do a <code>curl</code> to the exposed IP address and port. Execute the command multiple times:</p>
<p><code><b>curl http://"$(minikube ip):$NODE_PORT"</b></b></b></code></p>
<p>We hit a different Pod with every request. This demonstrates that the load-balancing is working.</p>
{{< 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>
<p>In a separate terminal window, execute:<br>
<code><b>minikube service kubernetes-bootcamp --url</b></code></p>
<p>The output looks like this:
<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>
<p>Then use the given URL to access the app:<br>
<code><b>curl 127.0.0.1:51082</b></code></p>
{{< /note >}}
</div>
</div>