MM: make sure the cronjobs don't fail
Openshift will always restart the cronjobs if they fail: https://docs.openshift.com/container-platform/4.15/nodes/jobs/nodes-nodes-jobs.html#jobs-limits_nodes-nodes-jobs Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
a9ff3c1ad2
commit
c65dfb1d4a
1 changed files with 3 additions and 2 deletions
|
@ -35,6 +35,7 @@ spec:
|
|||
- "--category"
|
||||
- "{{ cronjob.category }}"
|
||||
- "--{{ cronjob.include_disabled | ternary('include', 'exclude') }}-disabled"
|
||||
- "--no-fail"
|
||||
- "--debug"
|
||||
- "crawl"
|
||||
env:
|
||||
|
@ -60,10 +61,10 @@ spec:
|
|||
persistentVolumeClaim:
|
||||
claimName: logs
|
||||
{% endfor %}
|
||||
---
|
||||
#
|
||||
### Rotate logs
|
||||
#
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
|
@ -103,10 +104,10 @@ spec:
|
|||
claimName: logs
|
||||
securityContext:
|
||||
supplementalGroups: [1001280000]
|
||||
---
|
||||
#
|
||||
### Download GeoIP database
|
||||
#
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue