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.md
pull/385/merge
Janet Kuo 2016-07-25 11:31:30 -07:00 committed by GitHub
commit 5407cc0cde
1 changed files with 5 additions and 5 deletions

View File

@ -38,11 +38,11 @@ $ kubectl describe jobs/pi
Name: pi Name: pi
Namespace: default Namespace: default
Image(s): perl Image(s): perl
Selector: app in (pi) Selector: controller-uid=b1db589a-2c8d-11e6-b324-0209dc45a495
Parallelism: 1 Parallelism: 1
Completions: 1 Completions: 1
Start Time: Mon, 11 Jan 2016 15:35:52 -0800 Start Time: Tue, 07 Jun 2016 10:56:16 +0200
Labels: app=pi Labels: controller-uid=b1db589a-2c8d-11e6-b324-0209dc45a495,job-name=pi
Pods Statuses: 0 Running / 1 Succeeded / 0 Failed Pods Statuses: 0 Running / 1 Succeeded / 0 Failed
No volumes. No volumes.
Events: 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: To list all the pods that belong to job in a machine readable form, you can use a command like this:
```shell ```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 echo $pods
pi-aiw0a pi-aiw0a
``` ```