Skip to content

Commit

Permalink
Improve Kubernetes tutorial around explaining Services (#43503)
Browse files Browse the repository at this point in the history
* 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 <aj11anuj123@gmail.com>

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

Co-authored-by: Anuj Tiwari <aj11anuj123@gmail.com>

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

Co-authored-by: Anuj Tiwari <aj11anuj123@gmail.com>

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

Co-authored-by: Tim Bannister <tim@scalefactory.com>

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

Co-authored-by: Tim Bannister <tim@scalefactory.com>

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

Rephrase

Co-authored-by: Tim Bannister <tim@scalefactory.com>

* Update scale-intro.html

Fixed typo: Sservice -> service

---------

Co-authored-by: Anuj Tiwari <aj11anuj123@gmail.com>
Co-authored-by: Tim Bannister <tim@scalefactory.com>
  • Loading branch information
3 people committed Apr 26, 2024
1 parent 41ce00f commit f140892
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ <h3>Scaling an application</h3>
<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>
<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>

<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment.</p>
<p><em>Scaling</em> is accomplished by changing the number of replicas in a Deployment</p>
<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
may have deleted the service you created, or have created a Service of <tt>type: NodePort</tt>.
In this section, it is assumed that a service with <tt>type: LoadBalancer</tt> is created for the kubernetes-bootcamp Deployment.</p>
<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>,
first delete that Service and then run the following command to create a new Service with its
<tt>type</tt> set to <tt>LoadBalancer</tt>:</p>
<p><code><b>kubectl expose deployment/kubernetes-bootcamp --type="LoadBalancer" --port 8080</b></code></p>
</br>
</div>
<div class="col-md-4">
<div class="content__box content__box_lined">
Expand Down

0 comments on commit f140892

Please sign in to comment.