---
title: Job
sidebar_label: Job
---
A Job in Kubernetes is a controller that runs a pod or a set of pods to completion. It ensures that a desired number of pods terminate successfully. Jobs are primarily used for finite tasks where a completion occurs, such as a batch job. For more detailed information, you can refer to the [official Kubernetes Job documentation](https://kubernetes.io/docs/concepts/workloads/controllers/job/).
**Terraform Mappings:**
* `kubernetes_job.metadata[0].name`
* `kubernetes_job_v1.metadata[0].name`
## Supported Methods
* `GET`: Get a Job by name
* `LIST`: List all Jobs
* `SEARCH`: Search for a Job using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")
## Possible Links
### [`Pod`](/sources/k8s/Types/Pod)
A Kubernetes Job is directly linked to Pods because it creates Pods to execute the tasks needed to be completed. Once the Job is defined, Kubernetes ensures that the specified number of Pods are running the defined task, and it monitors their status. This relationship is crucial since the Job lifecycle controls and manages the Pods, determining whether they succeed, fail, or restart based on pre-set criteria.