Skip to content

Commit ade0f4c

Browse files
authored
Merge pull request #46515 from steve-hardman/fix-note
Fix guidance regarding Service creation in tutorial
2 parents cc701b3 + 465af1f commit ade0f4c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ <h3>Scaling an application</h3>
3030
<p>If you haven't worked through the earlier sections, start from <a href="/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/">Using minikube to create a cluster</a>.</p>
3131

3232
<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment</p>
33-
<p><b>NOTE</b> If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section </a>, then you
34-
may have deleted the service you created, or have created a Service of <tt>type: NodePort</tt>.
35-
In this section, it is assumed that a service with <tt>type: LoadBalancer</tt> is created for the kubernetes-bootcamp Deployment.</p>
36-
<p>If you have <em>not</em> deleted the Service created in <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro">the previous section</a>,
37-
first delete that Service and then run the following command to create a new Service with its
38-
<tt>type</tt> set to <tt>LoadBalancer</tt>:</p>
39-
<p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="LoadBalancer" --port 8080</b></code></p>
4033
</br>
4134
</div>
4235
<div class="col-md-4">
@@ -55,7 +48,13 @@ <h3>Summary:</h3>
5548
<div class="row">
5649
<div class="col-md-12">
5750
{{< note >}}
58-
<p>If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section</a>, you may have deleted the Service exposing the Deployment. In that case, please expose the Deployment again using the following command:</p><p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080</b></code></p>
51+
<p>If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section </a>, then you
52+
may have deleted the service you created, or have created a Service of <tt>type: NodePort</tt>.
53+
In this section, it is assumed that a service with <tt>type: LoadBalancer</tt> is created for the kubernetes-bootcamp Deployment.</p>
54+
<p>If you have <em>not</em> deleted the Service created in <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro">the previous section</a>,
55+
first delete that Service and then run the following command to create a new Service with its
56+
<tt>type</tt> set to <tt>LoadBalancer</tt>:</p>
57+
<p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="LoadBalancer" --port 8080</b></code></p>
5958
{{< /note >}}
6059
</div>
6160
</div>

0 commit comments

Comments
 (0)