Bootstrap FreeKB - OpenShift - Create cronjob using the oc create cronjob command
OpenShift - Create cronjob using the oc create cronjob command

Updated:   |  OpenShift articles

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

The oc create cronjob (or oc create cj) can be used to create a cronjob. In this example, a cronjob named my-cronjob is created in the currently selected project / namespace. The cronjob will run once every minute and will issue the date command.

~]$ oc create cronjob my-cronjob --image=busybox --schedule="*/1 * * * *" -- date
cronjob.batch/my-cronjob created

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 8f06d2 in the box below so that we can be sure you are a human.