Some tasks may need to be run periodically at regular intervals; for example, we may want to compress and archive logs every week or create backups every month. Bare Pods could be used to instrument said tasks, but this approach would require the administrator to set up a scheduling system outside of the Kubernetes cluster itself.
The need to schedule recurrent tasks brought the Kubernetes team to design a distinct controller modeled after the traditional cron utility found in Unix-like operating systems. Unsurprisingly, the controller is called CronJob, and it uses the same ...