Add a deadline for cronjob and make it run every 20th minute

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2024-06-24 16:48:29 -03:00 committed by phsmoura
parent 1879102909
commit a5b2891bde

View file

@ -4,7 +4,7 @@ metadata:
name: build-planet name: build-planet
namespace: planet namespace: planet
spec: spec:
schedule: '*/5 * * * *' schedule: '*/20 * * * *'
concurrencyPolicy: Forbid concurrencyPolicy: Forbid
suspend: false suspend: false
successfulJobsHistoryLimit: 3 successfulJobsHistoryLimit: 3
@ -13,6 +13,7 @@ spec:
metadata: metadata:
name: build-planet name: build-planet
spec: spec:
activeDeadlineSeconds: 900 # 15min
template: template:
spec: spec:
containers: containers: