Skip to content

Commit 4fa76e2

Browse files
authored
Merge pull request #25940 from ydFu/pr-2
Add content in replicationcontroller.md
2 parents 3dd4721 + abb825d commit 4fa76e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/en/docs/concepts/workloads/controllers/replicationcontroller.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Run the example job by downloading the example file and then running this comman
5454
```shell
5555
kubectl apply -f https://k8s.io/examples/controllers/replication.yaml
5656
```
57+
The output is similar to this:
5758
```
5859
replicationcontroller/nginx created
5960
```
@@ -63,6 +64,7 @@ Check on the status of the ReplicationController using this command:
6364
```shell
6465
kubectl describe replicationcontrollers/nginx
6566
```
67+
The output is similar to this:
6668
```
6769
Name: nginx
6870
Namespace: default
@@ -101,6 +103,7 @@ To list all the pods that belong to the ReplicationController in a machine reada
101103
pods=$(kubectl get pods --selector=app=nginx --output=jsonpath={.items..metadata.name})
102104
echo $pods
103105
```
106+
The output is similar to this:
104107
```
105108
nginx-3ntk0 nginx-4ok8v nginx-qrm3m
106109
```

0 commit comments

Comments
 (0)