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:
Aurélien Bompard 2024-03-18 08:53:06 +01:00
parent a9ff3c1ad2
commit c65dfb1d4a
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -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: