Cron Scheduling Explained: From Basic Syntax to Kubernetes CronJobs
The 5-Field Format Everyone Gets Wrong
# Which of these runs daily at 2 AM?
0 2 * * * # ✅ Correct
2 0 * * * # ❌ Wrong (2 AM at minute 0? No, midnight at minute 2!)
Answer: 0 2 * * * (minute=0, hour=2)
Cron Format Breakdown
┌───────────── minute ...
devkitsblog.hashnode.dev5 min read