CronJob
Appears in
.Values.workload.$name
schedule
Define the schedule
| Key | workload.$name.schedule | 
| Type | string | 
| Required | ✅ | 
Helm tpl | ✅ | 
| Default | "" | 
Example
workload:  workload-name:    schedule: "{{ .Values.cron }}"timezone
Define the timezone
| Key | workload.$name.timezone | 
| Type | string | 
| Required | ❌ | 
Helm tpl | ✅ | 
| Default | See here | 
Example
workload:  workload-name:    timezone: "{{ .Values.someTimezone }}"concurrencyPolicy
Define the concurrencyPolicy
| Key | workload.$name.concurrencyPolicy | 
| Type | string | 
| Required | ❌ | 
Helm tpl | ✅ | 
| Default | Forbid | 
Valid Values:
AllowReplaceForbid
Example
workload:  workload-name:    concurrencyPolicy: AllowfailedJobsHistoryLimit
Define the failedJobsHistoryLimit
| Key | workload.$name.failedJobsHistoryLimit | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ✅ | 
| Default | 1 | 
Example
workload:  workload-name:    failedJobsHistoryLimit: 2successfulJobsHistoryLimit
Define the successfulJobsHistoryLimit
| Key | workload.$name.successfulJobsHistoryLimit | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 3 | 
Example
workload:  workload-name:    successfulJobsHistoryLimit: 4startingDeadlineSeconds
Define the startingDeadlineSeconds
| Key | workload.$name.startingDeadlineSeconds | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | unset | 
Example
workload:  workload-name:    startingDeadlineSeconds: 100completionMode
Define the completionMode
| Key | workload.$name.completionMode | 
| Type | string | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | NonIndexed | 
Valid Values:
IndexedNonIndexed
Example
workload:  workload-name:    completionMode: IndexedbackoffLimit
Define the backoffLimit
| Key | workload.$name.backoffLimit | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 5 | 
Example
workload:  workload-name:    backoffLimit: 5completions
Define the completions
| Key | workload.$name.completions | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | unset | 
Example
workload:  workload-name:    completions: 5parallelism
Define the parallelism
| Key | workload.$name.parallelism | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 1 | 
Example
workload:  workload-name:    parallelism: 5ttlSecondsAfterFinished
Define the ttlSecondsAfterFinished
| Key | workload.$name.ttlSecondsAfterFinished | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | 120 | 
Example
workload:  workload-name:    ttlSecondsAfterFinished: 100activeDeadlineSeconds
Define the activeDeadlineSeconds
| Key | workload.$name.activeDeadlineSeconds | 
| Type | int | 
| Required | ❌ | 
Helm tpl | ❌ | 
| Default | unset | 
Example
workload:  workload-name:    activeDeadlineSeconds: 100Full Examples
workload:  workload-name:    enabled: true    primary: true    type: CronJob    schedule: "{{ .Values.cron }}"    timezone: "{{ .Values.someTimezone }}"    concurrencyPolicy: Allow    failedJobsHistoryLimit: 2    successfulJobsHistoryLimit: 4    startingDeadlineSeconds: 100    backoffLimit: 5    completionMode: Indexed    completions: 5    parallelism: 5    ttlSecondsAfterFinished: 100    activeDeadlineSeconds: 100    podSpec:      restartPolicy: OnFailure
  other-workload-name:    enabled: true    primary: false    type: CronJob    schedule: "* * * * *"    podSpec: {}