Jobs and CronJobs#
Deployments manage long-running processes. Jobs manage work that finishes. A Job creates one or more pods, runs them to completion, and tracks whether they succeeded. CronJobs run Jobs on a schedule. Both are essential for database migrations, report generation, data pipelines, and any workload that is not a continuously running server.
Job Basics#
A Job runs a pod until it exits successfully (exit code 0). The simplest case is a single pod that runs once: