Merge pull request #625 from endocode/master_fix_broken_examples_in_job_user-guide
Fix commands and output of "Running an example job" in user-guide/jobs.mdpull/385/merge
commit
5407cc0cde
|
@ -38,11 +38,11 @@ $ kubectl describe jobs/pi
|
|||
Name: pi
|
||||
Namespace: default
|
||||
Image(s): perl
|
||||
Selector: app in (pi)
|
||||
Selector: controller-uid=b1db589a-2c8d-11e6-b324-0209dc45a495
|
||||
Parallelism: 1
|
||||
Completions: 1
|
||||
Start Time: Mon, 11 Jan 2016 15:35:52 -0800
|
||||
Labels: app=pi
|
||||
Start Time: Tue, 07 Jun 2016 10:56:16 +0200
|
||||
Labels: controller-uid=b1db589a-2c8d-11e6-b324-0209dc45a495,job-name=pi
|
||||
Pods Statuses: 0 Running / 1 Succeeded / 0 Failed
|
||||
No volumes.
|
||||
Events:
|
||||
|
@ -56,7 +56,7 @@ To view completed pods of a job, use `kubectl get pods --show-all`. The `--show
|
|||
To list all the pods that belong to job in a machine readable form, you can use a command like this:
|
||||
|
||||
```shell
|
||||
$ pods=$(kubectl get pods --selector=app=pi --output=jsonpath={.items..metadata.name})
|
||||
$ pods=$(kubectl get pods --selector=job-name=pi --output=jsonpath={.items..metadata.name})
|
||||
echo $pods
|
||||
pi-aiw0a
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue