Skip to content

Commit

Permalink
Improved the Note at the start of the section by specifying the comma…
Browse files Browse the repository at this point in the history
…nd to create the Service if not present.

Specified the Step 2 which was missing earlier.

Added the note inside a shortcode.
  • Loading branch information
adityasamant25 committed Jan 16, 2024
1 parent 5f09ece commit 14bda6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -128,7 +128,7 @@ <h3>Step 1: Creating a new Service</h3>

<div class="row">
<div class="col-md-12">
<h3>Using labels</h3>
<h3>Step 2: Using labels</h3>
<div class="content">
<p>The Deployment created automatically a label for our Pod. With the <code>describe deployment</code> subcommand you can see the name (the <em>key</em>) of that label:</p>
<p><code><b>kubectl describe deployment</b></code></p>
Expand Down
Expand Up @@ -31,7 +31,9 @@ <h3>Scaling an application</h3>
<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> <b> NOTE </b> If you are trying this after <a href="/docs/tutorials/kubernetes-basics/expose/expose-intro/">the previous section </a>, you may need to start from <a href="/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/">creating a cluster</a> as the services may have been deleted </p>
{{< note >}}
<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>
{{< /note >}}
</div>
<div class="col-md-4">
<div class="content__box content__box_lined">
Expand Down

0 comments on commit 14bda6e

Please sign in to comment.