CronJobs
A CronJob runs a container on a repeating schedule. Each time the schedule fires, Kubernetes creates a Job that runs the container to completion and then exits. CronJobs are useful for periodic tasks like database backups, report generation, cache invalidation, or any work that should run on a timer rather than continuously.
Creating a CronJob
Open Workloads → CronJobs and click Add CronJob. In addition to the usual namespace, name, and image, you need to supply a schedule in standard cron format.
The schedule is expressed in UTC using five fields:
┌─────── minute (0–59)
│ ┌───── hour (0–23)
│ │ ┌─── day of month (1–31)
│ │ │ ┌─ month (1–12)
│ │ │ │ ┌ day of week (0–6, 0=Sunday)
│ │ │ │ │
* * * * *
Some useful examples: 0 * * * * runs at the top of every hour; 0 2 * * * runs daily at 02:00 UTC; */15 * * * * runs every 15 minutes; 0 9 * * 1 runs every Monday at 09:00 UTC.
All CronJob schedules in Kubernetes are evaluated in UTC. Account for timezone offset if your task needs to fire at a specific local time.