@@ -113,20 +113,14 @@ <h3>Create a new Service</h3>
113
113
< code > < b > echo "NODE_PORT=$NODE_PORT"</ b > </ code > </ p >
114
114
< 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 >
115
115
< p > < code > < b > curl http://"$(minikube ip):$NODE_PORT"</ b > </ code > </ 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 >
118
- < p > In a seperate terminal window, execute:</ 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 > }}
116
+ {{< note > }}< p > If Docker is the container runtime, minikube tunnel is needed. This is because Docker Desktop does not support ports. < br >
117
+ < p > In a separate terminal window, execute:< br >
118
+ < code > < b > $ minikube service kubernetes-bootcamp --url</ b > </ code > </ p >
119
+ < p > The output looks like this:
120
+ < 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 >
121
+ < p > Then use the given url to access the app:< br >
122
+ < code > < b > $ curl 127.0.0.1:51082</ b > </ code > </ p >
123
+ {{< /note > }}
130
124
< p > And we get a response from the server. The Service is exposed.</ p >
131
125
</ div >
132
126
</ div >
0 commit comments