Update automated-tasks-with-cron-jobs.md (#19043)

This commit is contained in:
rm
2020-02-10 21:39:53 +05:30
committed by GitHub
parent fab9100503
commit 680f6fc086
@@ -52,7 +52,7 @@ cronjob.batch/hello created
Alternatively, you can use `kubectl run` to create a cron job without writing a full config:
```shell
kubectl run --generator=run-pod/v1 hello --schedule="*/1 * * * *" --restart=OnFailure --image=busybox -- /bin/sh -c "date; echo Hello from the Kubernetes cluster"
kubectl run hello --schedule="*/1 * * * *" --restart=OnFailure --image=busybox -- /bin/sh -c "date; echo Hello from the Kubernetes cluster"
```
After creating the cron job, get its status using this command: