Skip to content

Commit f140892

Browse files
javadebadiaj11anujTim Bannister
authored
Improve Kubernetes tutorial around explaining Services (#43503)
* Adds a new lines to documents explaining that this section assumes we have created a kuberentes-bootcamp service with LoadBalancer type * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Anuj Tiwari <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Anuj Tiwari <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Anuj Tiwari <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Tim Bannister <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Tim Bannister <[email protected]> * Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Rephrase Co-authored-by: Tim Bannister <[email protected]> * Update scale-intro.html Fixed typo: Sservice -> service --------- Co-authored-by: Anuj Tiwari <[email protected]> Co-authored-by: Tim Bannister <[email protected]>
1 parent 41ce00f commit f140892

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ <h3>Scaling an application</h3>
2929
<p>Previously we created a <a href="/docs/concepts/workloads/controllers/deployment/"> Deployment</a>, and then exposed it publicly via a <a href="/docs/concepts/services-networking/service/">Service</a>. The Deployment created only one Pod for running our application. When traffic increases, we will need to scale the application to keep up with user demand.</p>
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

32-
<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment.</p>
32+
<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>
40+
</br>
3341
</div>
3442
<div class="col-md-4">
3543
<div class="content__box content__box_lined">

0 commit comments

Comments
 (0)