Skip to content

Commit 6d00466

Browse files
authored
Merge pull request #45549 from mietnik/patch-2
check-service-exists
2 parents 69903f5 + ef8ca36 commit 6d00466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ <h3>Update the version of the app</h3>
141141
<div class="row">
142142
<div class="col-md-12">
143143
<h3>Verify an update</h3>
144-
<p>First, check that the app is running. To find the exposed IP address and port, run the <code>describe service</code> command:</p>
145-
<p><code><b>kubectl describe services/kubernetes-bootcamp</b></code></p>
144+
<p>First, check that the service is running, as you might have deleted it in previous tutorial step, run <code>describe services/kubernetes-bootcamp</code>. If it's missing, you can create it again with:
145+
<p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080</b></code></p>
146146
<p>Create an environment variable called <tt>NODE_PORT</tt> that has the value of the Node port assigned:</p>
147147
<p><code><b>export NODE_PORT="$(kubectl get services/kubernetes-bootcamp -o go-template='{{(index .spec.ports 0).nodePort}}')"</b></code><br />
148148
<code><b>echo "NODE_PORT=$NODE_PORT"</b></code></p>

0 commit comments

Comments
 (0)