Skip to content

Commit ef8ca36

Browse files
authored
check-service-exists
Following tutorial step by step at this point service is not defined
1 parent fc1c1b6 commit ef8ca36

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

+2-2
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)