keep 3 failures
This commit is contained in:
parent
81a10526d2
commit
e6029901a2
1 changed files with 7 additions and 6 deletions
|
|
@ -5,14 +5,15 @@ metadata:
|
||||||
name: {{ .Release.Name }}-cronjob
|
name: {{ .Release.Name }}-cronjob
|
||||||
spec:
|
spec:
|
||||||
schedule: "{{ .Values.schedule }}"
|
schedule: "{{ .Values.schedule }}"
|
||||||
startingDeadlineSeconds: 200
|
startingDeadlineSeconds: 200 # Deadline for starting the job
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid # Prevents concurrent runs
|
||||||
successfulJobsHistoryLimit: 1
|
successfulJobsHistoryLimit: 3 # Keeps last successful job
|
||||||
failedJobsHistoryLimit: 1
|
failedJobsHistoryLimit: 3 # Keeps last failed job
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
activeDeadlineSeconds: 180
|
activeDeadlineSeconds: 180 # Limits how long a job can be active
|
||||||
ttlSecondsAfterFinished: 100
|
ttlSecondsAfterFinished: 100 # Cleans up finished jobs after 100 seconds
|
||||||
|
backoffLimit: 3 # Number of retries before considering the job failed
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue