Fix command highlight in port-forward-access-application-cluster (#8705)

* fix command highlight in port-forward-access-application-cluster

* Fix structure and add some sentences

* modify the wording

* update wording
This commit is contained in:
Takuya Tokuda
2018-07-20 09:25:53 +09:00
committed by k8s-ci-robot
parent 60ae386182
commit b97002f268
@@ -34,20 +34,30 @@ for database debugging.
deployment "redis-master" created deployment "redis-master" created
When the pod is ready, you can get: View the pod status to check that it is ready:
kubectl get pods kubectl get pods
The output displays the pod created:
NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE
redis-master-765d459796-258hz 1/1 Running 0 50s redis-master-765d459796-258hz 1/1 Running 0 50s
View the deployment status:
kubectl get deployment kubectl get deployment
The output displays that the deployment was created:
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
redis-master 1 1 1 1 55s redis-master 1 1 1 1 55s
View the replicaset status using:
kubectl get rs kubectl get rs
The output displays that the replicaset was created:
NAME DESIRED CURRENT READY AGE NAME DESIRED CURRENT READY AGE
redis-master-765d459796 1 1 1 1m redis-master-765d459796 1 1 1 1m
@@ -64,15 +74,15 @@ for database debugging.
kubectl get svc | grep redis kubectl get svc | grep redis
The output displays the service created:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
redis-master ClusterIP 10.0.0.213 <none> 6379/TCP 27s redis-master ClusterIP 10.0.0.213 <none> 6379/TCP 27s
3. Verify that the Redis server is running in the pod and listening on port 6379: 3. Verify that the Redis server is running in the pod and listening on port 6379:
kubectl get pods redis-master-765d459796-258hz --template='{{(index (index .spec.containers 0).ports 0).containerPort}}{{"\n"}}' kubectl get pods redis-master-765d459796-258hz --template='{{(index (index .spec.containers 0).ports 0).containerPort}}{{"\n"}}'
The output displays the port: The output displays the port:
6379 6379