Browse Source

fix cronjob reschedule

avoid errors of "more than 100 jobs skipped/failed"
and stopping of job by k8s
pull/1742/head
LazyDBA247-Anyvision 4 years ago
parent
commit
8491fbf1c7
  1. 3
      k8s/seaweedfs/templates/cronjob.yaml

3
k8s/seaweedfs/templates/cronjob.yaml

@ -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 }}
Loading…
Cancel
Save