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:
parent
1879102909
commit
a5b2891bde
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue