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"
|
- "--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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue