Update job.md
parent
c029237207
commit
8b7dfefb3f
|
@ -34,7 +34,7 @@ spec:
|
||||||
$ kubectl create -f ./job.yaml
|
$ kubectl create -f ./job.yaml
|
||||||
job "pi" created
|
job "pi" created
|
||||||
$ pods=$(kubectl get pods --selector=job-name=pi --output=jsonpath={.items..metadata.name})
|
$ pods=$(kubectl get pods --selector=job-name=pi --output=jsonpath={.items..metadata.name})
|
||||||
$ kubectl logs $pods
|
$ kubectl logs $pods -c pi
|
||||||
3.141592653589793238462643383279502...
|
3.141592653589793238462643383279502...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue