Merge pull request #573 from isubuz/pod_name_with_suffix
Correct pod name in kubectl command outputpull/449/merge
commit
00fa3b80e5
|
@ -2,8 +2,8 @@ To view a specific pod, use the `kubectl get` command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl get pod NAME
|
$ kubectl get pod NAME
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
example 1/1 Running 0 2d
|
example-1934187764-scau1 1/1 Running 0 2d
|
||||||
```
|
```
|
||||||
|
|
||||||
To return the name of the node on which the pod is scheduled, use the `-o wide`
|
To return the name of the node on which the pod is scheduled, use the `-o wide`
|
||||||
|
@ -11,8 +11,8 @@ option:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl get pod NAME -o wide
|
$ kubectl get pod NAME -o wide
|
||||||
NAME READY STATUS RESTARTS AGE NODE
|
NAME READY STATUS RESTARTS AGE NODE
|
||||||
example 1/1 Running 0 2d gke-example-c6a38-node-xij3
|
example-1934187764-scau1 1/1 Running 0 2d gke-example-c6a38-node-xij3
|
||||||
```
|
```
|
||||||
|
|
||||||
For more details about a pod, including events, use `describe` in place of
|
For more details about a pod, including events, use `describe` in place of
|
||||||
|
@ -20,7 +20,7 @@ For more details about a pod, including events, use `describe` in place of
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl describe pod NAME
|
$ kubectl describe pod NAME
|
||||||
Name: example
|
Name: example-1934187764-scau1
|
||||||
Namespace: default
|
Namespace: default
|
||||||
Image(s): kubernetes/example-php-redis:v2
|
Image(s): kubernetes/example-php-redis:v2
|
||||||
Node: gke-example-c6a38461-node-xij3/10.240.34.183
|
Node: gke-example-c6a38461-node-xij3/10.240.34.183
|
||||||
|
@ -52,7 +52,7 @@ To list all pods running on a cluster:
|
||||||
```shell
|
```shell
|
||||||
$ kubectl get pods
|
$ kubectl get pods
|
||||||
|
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
example-xypvc 1/1 Running 0 1m
|
example-1934187764-scau1 1/1 Running 0 1m
|
||||||
frontend-7kdod 1/1 Running 0 1d
|
frontend-7kdod 1/1 Running 0 1d
|
||||||
```
|
```
|
Loading…
Reference in New Issue