Job
Appears in
Section titled “Appears in”.Values.workload.$name
Value of workload.$name.podSpec.restartPolicy
can not be Always
for this type of workload
completionMode
Section titled “completionMode”Define the completionMode
Key | workload.$name.completionMode |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | NonIndexed |
Valid Values:
Indexed
NonIndexed
Example
workload: workload-name: completionMode: Indexed
backoffLimit
Section titled “backoffLimit”Define the backoffLimit
Key | workload.$name.backoffLimit |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | 5 |
Example
workload: workload-name: backoffLimit: 5
completions
Section titled “completions”Define the completions
Key | workload.$name.completions |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | unset |
Example
workload: workload-name: completions: 5
parallelism
Section titled “parallelism”Define the parallelism
Key | workload.$name.parallelism |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | 1 |
Example
workload: workload-name: parallelism: 5
ttlSecondsAfterFinished
Section titled “ttlSecondsAfterFinished”Define the ttlSecondsAfterFinished
Key | workload.$name.ttlSecondsAfterFinished |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | 120 |
Example
workload: workload-name: ttlSecondsAfterFinished: 100
activeDeadlineSeconds
Section titled “activeDeadlineSeconds”Define the activeDeadlineSeconds
Key | workload.$name.activeDeadlineSeconds |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | unset |
Example
workload: workload-name: activeDeadlineSeconds: 100
Full Examples
Section titled “Full Examples”workload: workload-name: enabled: true primary: true type: Job backoffLimit: 5 completionMode: Indexed completions: 5 parallelism: 5 ttlSecondsAfterFinished: 100 activeDeadlineSeconds: 100 podSpec: restartPolicy: Never
other-workload-name: enabled: true primary: false type: Job podSpec: {}