Format example code (#5711)
This commit is contained in:
committed by
Steve Perry
parent
984810462e
commit
22860da3c1
@@ -76,7 +76,7 @@ To list all the pods that belong to a job in a machine readable form, you can us
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ pods=$(kubectl get pods --show-all --selector=job-name=pi --output=jsonpath={.items..metadata.name})
|
$ pods=$(kubectl get pods --show-all --selector=job-name=pi --output=jsonpath={.items..metadata.name})
|
||||||
echo $pods
|
$ echo $pods
|
||||||
pi-aiw0a
|
pi-aiw0a
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user