Kubernetes Scheduling
Learn Kubernetes CronJobs, schedule syntax, concurrencyPolicy, restart behavior, missed jobs, timezones, and production-safe manifests.
What you will learn
- Write valid Kubernetes CronJob manifests.
- Choose concurrencyPolicy and history settings intentionally.
- Understand missed jobs, restarts, and timezone behavior.
- Design CronJobs that are observable, idempotent, and safe to retry.
Course lessons
1. CronJob anatomy
Understand the relationship between CronJobs, Jobs, and Pods.
Exercise: Create a daily cleanup CronJob manifest with restartPolicy: OnFailure.
2. Schedules and timezones
Translate standard cron syntax into Kubernetes CronJob schedules.
Exercise: Preview the next five runs for a weekday 09:00 CronJob.
3. Concurrency and missed jobs
Control overlap and late execution behavior.
Exercise: Pick a concurrencyPolicy for a database backup job and justify it.
4. Secrets, resources, and cleanup
Build CronJobs that behave well in real clusters.
Exercise: Add resource requests and job history limits to a CronJob YAML file.
5. Backup and maintenance patterns
Apply CronJobs to common DevOps automation tasks.
Exercise: Design a Kubernetes backup CronJob with logging, retries, and verification.