Overview

A Job is used for batch processing or short-lived tasks. Unlike a Deployment, which aims to keep Pods running indefinitely, a Job runs Pods until they complete their task and then stops them.

Key Features

  • Completion Guarantee: Ensures the task is completed successfully, even if Pods fail or nodes go down.
  • Parallelism: Can be configured to run multiple Pods in parallel to speed up the task.
  • Retries: Automatically retries failed Pods up to a specified limit.

Use Cases

  • Database migrations.
  • Batch data processing.
  • Sending a batch of emails.

Related Terms