Update job.md

pull/388/head
matthew188 2020-02-28 11:34:52 +08:00 committed by GitHub
parent c029237207
commit 8b7dfefb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ spec:
$ kubectl create -f ./job.yaml
job "pi" created
$ pods=$(kubectl get pods --selector=job-name=pi --output=jsonpath={.items..metadata.name})
$ kubectl logs $pods
$ kubectl logs $pods -c pi
3.141592653589793238462643383279502...
```