templates/compose: add startingDeadlineSeconds to maintenance job

The job won't run if it doesn't get scheduled within 30 minutes. This
prevents the job running multiple times in a row if it didn't get
scheduled, for instance due to resource limits.
This commit is contained in:
Sanne Raymaekers 2023-09-21 12:08:28 +02:00
parent e0b2455acf
commit 5bb9d414a2

View file

@ -307,6 +307,8 @@ objects:
# run maintenance job at midnight
schedule: 0 0 * * *
concurrencyPolicy: Forbid
# don't run if the job doesn't get scheduled within 30 minutes
startingDeadlineSeconds: 1800
jobTemplate:
spec:
template: