fix cronjob reschedule

avoid errors of "more than 100 jobs skipped/failed"
and stopping of job by k8s
This commit is contained in:
LazyDBA247-Anyvision 2021-01-13 22:13:07 +02:00
parent 8b55331247
commit 8491fbf1c7

View file

@ -6,6 +6,7 @@ metadata:
name: {{ include "seaweedfs.fullname" . }}-cronjob
spec:
schedule: "{{ .Values.cronjob.schedule }}"
startingDeadlineSeconds: 200
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 2
successfulJobsHistoryLimit: 2
@ -51,4 +52,4 @@ spec:
-filer {{ template "seaweedfs.name" . }}-filer.{{ .Release.Namespace }}.svc:{{ .Values.filer.port }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}