From 9c29ea92e90b214264761bfe65206f6bfe1118e5 Mon Sep 17 00:00:00 2001 From: DeltaX Date: Sat, 11 Nov 2023 09:58:22 +0800 Subject: [PATCH] Fix scale-intro.html outputs indentations of terminal. Fix command code block without line break Update content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html Co-authored-by: Michael --- .../kubernetes-basics/scale/scale-intro.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html b/content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html index b70c087e58..7c6d980ef7 100644 --- a/content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html +++ b/content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.html @@ -110,13 +110,13 @@ description: |-

Scaling a Deployment

-

To list your Deployments use the get deployments subcommand: - kubectl get deployments

+

To list your Deployments, use the get deployments subcommand:

+

kubectl get deployments

The output should be similar to:

-
-               NAME                  READY   UP-TO-DATE   AVAILABLE   AGE
-               kubernetes-bootcamp   1/1     1            1           11m
-               
+
+NAME                  READY   UP-TO-DATE   AVAILABLE   AGE
+kubernetes-bootcamp   1/1     1            1           11m
+

We should have 1 Pod. If not, run the command again. This shows:

  • NAME lists the names of the Deployments in the cluster.
  • @@ -125,8 +125,8 @@ description: |-
  • AVAILABLE displays how many replicas of the application are available to your users.
  • AGE displays the amount of time that the application has been running.
-

To see the ReplicaSet created by the Deployment, run - kubectl get rs

+

To see the ReplicaSet created by the Deployment, run:

+

kubectl get rs

Notice that the name of the ReplicaSet is always formatted as [DEPLOYMENT-NAME]-[RANDOM-STRING]. The random string is randomly generated and uses the pod-template-hash as a seed.

Two important columns of this output are: