Understanding how to create jobs
Both resource types require a job configuration that consists of the following key parts:
-
A pod template, which describes the pod that OpenShift Container Platform creates.
-
The
parallelismparameter, which specifies how many pods running in parallel at any point in time should execute a job.-
For non-parallel jobs, leave unset. When unset, defaults to
1.
-
-
The
completionsparameter, specifying how many successful pod completions are needed to finish a job.-
For non-parallel jobs, leave unset. When unset, defaults to
1. -
For parallel jobs with a fixed completion count, specify a value.
-
For parallel jobs with a work queue, leave unset. When unset defaults to the
parallelismvalue.
-