You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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>
<p>Note that since Docker Desktop does not support ports, we need to use minikube tunnel if Docker is the container runtime. This is a <ahref="https://github.com/kubernetes/minikube/issues/11193">known issue</a>.</p>
116
+
{{<note>}}
117
+
<p>If Docker is the container runtime, minikube tunnel is needed. This is because Docker Desktop does not support ports. </p>
117
118
<p>In a seperate terminal window, execute:</p>
118
-
<p><code><b>minikube service kubernetes-bootcamp --url</b></code></p>
119
-
<p>and use the output url to access the app.</p>
119
+
<p><code><b>
120
+
$ minikube service kubernetes-bootcamp --url<br/>
121
+
http://127.0.0.1:51082<br/>
122
+
! Because you are using a Docker driver on darwin, the terminal needs to be open to run it.
123
+
</b></code></p>
124
+
<p>Then use the given url to access the app:</p>
125
+
<p><code><b>
126
+
$ curl 127.0.0.1:51082<br/>
127
+
Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-5485cc6795-tc27p | v=1
128
+
</b></code></p>
129
+
{{< /note >}}
120
130
<p>And we get a response from the server. The Service is exposed.</p>
0 commit comments