mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix cronjob reschedule
avoid errors of "more than 100 jobs skipped/failed" and stopping of job by k8s
This commit is contained in:
parent
8b55331247
commit
8491fbf1c7
|
@ -6,6 +6,7 @@ metadata:
|
||||||
name: {{ include "seaweedfs.fullname" . }}-cronjob
|
name: {{ include "seaweedfs.fullname" . }}-cronjob
|
||||||
spec:
|
spec:
|
||||||
schedule: "{{ .Values.cronjob.schedule }}"
|
schedule: "{{ .Values.cronjob.schedule }}"
|
||||||
|
startingDeadlineSeconds: 200
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
failedJobsHistoryLimit: 2
|
failedJobsHistoryLimit: 2
|
||||||
successfulJobsHistoryLimit: 2
|
successfulJobsHistoryLimit: 2
|
||||||
|
@ -51,4 +52,4 @@ spec:
|
||||||
-filer {{ template "seaweedfs.name" . }}-filer.{{ .Release.Namespace }}.svc:{{ .Values.filer.port }}
|
-filer {{ template "seaweedfs.name" . }}-filer.{{ .Release.Namespace }}.svc:{{ .Values.filer.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue