fix command kubectl get svc,pod output

fix command kubectl get svc,pod output
This commit is contained in:
chenhuan12
2017-02-24 14:38:27 +08:00
committed by Andrew Chen
parent 474ae68f25
commit 4508f114f9
@@ -31,12 +31,13 @@ This will run two nginx Pods in the default Namespace, and expose them through a
```console ```console
$ kubectl get svc,pod $ kubectl get svc,pod
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.100.0.1 <none> 443/TCP 46m svc/kubernetes 10.100.0.1 <none> 443/TCP 46m
nginx 10.100.0.16 <none> 80/TCP 33s svc/nginx 10.100.0.16 <none> 80/TCP 33s
NAME READY STATUS RESTARTS AGE
nginx-701339712-e0qfq 1/1 Running 0 35s NAME READY STATUS RESTARTS AGE
nginx-701339712-o00ef 1/1 Running 0 35s po/nginx-701339712-e0qfq 1/1 Running 0 35s
po/nginx-701339712-o00ef 1/1 Running 0 35s
``` ```
We should be able to access our new nginx Service from other Pods. Let's try to access it from another Pod We should be able to access our new nginx Service from other Pods. Let's try to access it from another Pod