Skip to content

Commit

Permalink
Fix scale-intro.html outputs indentations of terminal.
Browse files Browse the repository at this point in the history
Fix command code block without line break

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

Co-authored-by: Michael <haifeng.yao@daocloud.io>
  • Loading branch information
1000Delta and windsonsea committed Nov 16, 2023
1 parent de5baa1 commit 9c29ea9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ <h2 style="color: #3771e3;">Scaling overview</h2>
<div class="row">
<div class="col-md-12">
<h3>Scaling a Deployment</h3>
<p>To list your Deployments use the <code>get deployments</code> subcommand:
<code><b>kubectl get deployments</b></code></p>
<p>To list your Deployments, use the <code>get deployments</code> subcommand:</p>
<p><code><b>kubectl get deployments</b></code></p>
<p>The output should be similar to:</p>
<pre>
NAME READY UP-TO-DATE AVAILABLE AGE
kubernetes-bootcamp 1/1 1 1 11m
</pre>
<pre>
NAME READY UP-TO-DATE AVAILABLE AGE
kubernetes-bootcamp 1/1 1 1 11m
</pre>
<p>We should have 1 Pod. If not, run the command again. This shows:</p>
<ul>
<li><em>NAME</em> lists the names of the Deployments in the cluster.</li>
Expand All @@ -125,8 +125,8 @@ <h3>Scaling a Deployment</h3>
<li><em>AVAILABLE</em> displays how many replicas of the application are available to your users.</li>
<li><em>AGE</em> displays the amount of time that the application has been running.</li>
</ul>
<p>To see the ReplicaSet created by the Deployment, run
<code><b>kubectl get rs</b></code></p>
<p>To see the ReplicaSet created by the Deployment, run:</p>
<p><code><b>kubectl get rs</b></code></p>
<p>Notice that the name of the ReplicaSet is always formatted as <tt>[DEPLOYMENT-NAME]-[RANDOM-STRING]</tt>. The random string is randomly generated and uses the <em>pod-template-hash</em> as a seed.</p>
<p>Two important columns of this output are:</p>
<ul>
Expand Down

0 comments on commit 9c29ea9

Please sign in to comment.