Skip to content

Commit b7d0e96

Browse files
authored
improve styling
1 parent af59b62 commit b7d0e96

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,20 @@ <h3>Create a new Service</h3>
113113
<code><b>echo "NODE_PORT=$NODE_PORT"</b></code></p>
114114
<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>
115115
<p><code><b>curl http://"$(minikube ip):$NODE_PORT"</b></code></p>
116-
<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 <a href="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>
117118
<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 >}}
120130
<p>And we get a response from the server. The Service is exposed.</p>
121131
</div>
122132
</div>

0 commit comments

Comments
 (0)