Update a command to run correctly for a reader (#9167)

# Issue
The command of jobs does not run correctly if its job already finished.
Some readers may confuse that they can't succeed to run a command to follow this tutorial.
So, we should add `--show-all` option to show pods that may be completed.

# The log to show that we need to add an --show-all option
```
$ kubectl get jobs
NAME               DESIRED   SUCCESSFUL   AGE
busybox            1         0            27d
hello-1529501040   1         1            2m
hello-1529501100   1         1            1m
hello-1529501160   1         1            43s
$ kubectl get pods --selector=job-name=hello-1529501160
No resources found, use --show-all to see completed objects.
$ kubectl get pods --show-all --selector=job-name=hello-1529501160
NAME                     READY     STATUS      RESTARTS   AGE
hello-1529501160-dckjv   0/1       Completed   0          1m
```
pull/9218/head
A. Ishikawa 2018-06-25 10:41:02 +09:00 committed by k8s-ci-robot
parent 9b2fd1ff09
commit e2adcde55d
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ Note that the job name and pod name are different.
```shell
# Replace "hello-4111706356" with the job name in your system
$ pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
$ pods=$(kubectl get pods --show-all --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
$ echo $pods
hello-4111706356-o9qcm