clean up -a from doc (#7852)
-a/--show-all has been set to true by default in 1.10 And it will be inert in 1.11 It's OK to remove them from the 1.10 doc.
This commit is contained in:
@@ -53,7 +53,7 @@ This Pod can be started with the following commands:
|
||||
$ kubectl apply -f hostaliases-pod.yaml
|
||||
pod "hostaliases-pod" created
|
||||
|
||||
$ kubectl get pod -a -o=wide
|
||||
$ kubectl get pod -o=wide
|
||||
NAME READY STATUS RESTARTS AGE IP NODE
|
||||
hostaliases-pod 0/1 Completed 0 6s 10.244.135.10 node3
|
||||
```
|
||||
|
||||
@@ -95,7 +95,7 @@ your job name and pod name would be different.
|
||||
|
||||
```shell
|
||||
# Replace "hello-4111706356" with the job name in your system
|
||||
$ pods=$(kubectl get pods -a --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
|
||||
$ pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
|
||||
|
||||
$ echo $pods
|
||||
hello-4111706356-o9qcm
|
||||
|
||||
Reference in New Issue
Block a user