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" - "--category"
- "{{ cronjob.category }}" - "{{ cronjob.category }}"
- "--{{ cronjob.include_disabled | ternary('include', 'exclude') }}-disabled" - "--{{ cronjob.include_disabled | ternary('include', 'exclude') }}-disabled"
- "--no-fail"
- "--debug" - "--debug"
- "crawl" - "crawl"
env: env:
@ -60,10 +61,10 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: logs claimName: logs
{% endfor %} {% endfor %}
---
# #
### Rotate logs ### Rotate logs
# #
---
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
@ -103,10 +104,10 @@ spec:
claimName: logs claimName: logs
securityContext: securityContext:
supplementalGroups: [1001280000] supplementalGroups: [1001280000]
---
# #
### Download GeoIP database ### Download GeoIP database
# #
---
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata: