A Job resource is similar to a ReplicaSet as it creates one or more Pods and ensures they run successfully. The most close Cloud analogue - Cloud Run Jobs at GCP
.spec.template.spec.restartPolicy
- Always
is not allowed for a Job, and the only possible options are OnFailure
or Never
.spec.completions
- Specifies how many Pods should run to complete a Job.
.spec.parallelism
- Specifies how many Pod replicas could run in parallel.
[1] Parallel Processing using Expansions
[2] Coarse Parallel Processing Using a Work Queue
[3] Fine Parallel Processing Using a Work Queue
[4] Indexed Job for Parallel Processing with Static Work Assignment