Update automated-tasks-with-cron-jobs.md (#9810)
This commit is contained in:
@@ -93,7 +93,7 @@ Note that the job name and pod name are different.
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Replace "hello-4111706356" with the job name in your system
|
# Replace "hello-4111706356" with the job name in your system
|
||||||
$ pods=$(kubectl get pods --show-all --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
|
$ pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name})
|
||||||
|
|
||||||
$ echo $pods
|
$ echo $pods
|
||||||
hello-4111706356-o9qcm
|
hello-4111706356-o9qcm
|
||||||
|
|||||||
Reference in New Issue
Block a user