DevOps Examples

Kubernetes CronJob Daily Cron Expression

Schedule a Kubernetes CronJob daily at midnight with 0 0 * * *.

Cron expression

0 0 * * *

Plain English explanation

Runs every day at 12:00 AM.

Kubernetes CronJob uses cron-style schedules, but production behavior also depends on CronJob settings such as concurrencyPolicy and timeZone support.

Field breakdown

Minute

0

At minute 0

0-59

Hour

0

At 12 AM

0-23

Day of Month

*

Every day of the month

1-31

Month

*

Every month

1-12

Day of Week

*

Every day of the week

0-7, where 0 or 7 is Sunday

Use case

Use in a Kubernetes CronJob schedule field for daily maintenance or batch processing.

FAQ

What does this cron expression mean?

Runs every day at 12:00 AM.

Can I use this in Linux crontab?

Yes. This is a standard Linux 5-field cron expression when used with a normal crontab command.

Does this work in GitHub Actions?

Usually yes for 5-field syntax, but GitHub Actions schedules run in UTC and may be delayed during high load.

How can I change the time?

Edit the minute and hour fields, or open the expression in the Cron Generator or Playground.

How can I test this expression?

Use the Cron Validator to check syntax and the Next Run Calculator to preview upcoming executions.