From abb825dd10643ba82797f3a02a0c7e9132b07511 Mon Sep 17 00:00:00 2001 From: Ader Date: Tue, 29 Dec 2020 09:34:03 +0800 Subject: [PATCH] Add content in replicationcontroller.md Add description to make it easy to read. * Distinguish between 'command'and 'output'. --- .../concepts/workloads/controllers/replicationcontroller.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/docs/concepts/workloads/controllers/replicationcontroller.md b/content/en/docs/concepts/workloads/controllers/replicationcontroller.md index fa481fb3f8..36ae4a880a 100644 --- a/content/en/docs/concepts/workloads/controllers/replicationcontroller.md +++ b/content/en/docs/concepts/workloads/controllers/replicationcontroller.md @@ -54,6 +54,7 @@ Run the example job by downloading the example file and then running this comman ```shell kubectl apply -f https://k8s.io/examples/controllers/replication.yaml ``` +The output is similar to this: ``` replicationcontroller/nginx created ``` @@ -63,6 +64,7 @@ Check on the status of the ReplicationController using this command: ```shell kubectl describe replicationcontrollers/nginx ``` +The output is similar to this: ``` Name: nginx Namespace: default @@ -101,6 +103,7 @@ To list all the pods that belong to the ReplicationController in a machine reada pods=$(kubectl get pods --selector=app=nginx --output=jsonpath={.items..metadata.name}) echo $pods ``` +The output is similar to this: ``` nginx-3ntk0 nginx-4ok8v nginx-qrm3m ```