Skip to content

Commit

Permalink
Update automated-tasks-with-cron-jobs.md (#19043)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajibmitra authored Feb 10, 2020
1 parent fab9100 commit 680f6fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 680f6fc

Please sign in to comment.