aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLazyDBA247-Anyvision <yonin@anyvision.co>2021-01-13 22:13:07 +0200
committerLazyDBA247-Anyvision <yonin@anyvision.co>2021-01-13 22:13:07 +0200
commit8491fbf1c7e435016cc8eadf8079763c690c3fbd (patch)
treec616297768d59f890a0b189c1e0645d7a9267b2b
parent8b553312478a7730218846c7fc9d6600be371fc0 (diff)
downloadseaweedfs-8491fbf1c7e435016cc8eadf8079763c690c3fbd.tar.xz
seaweedfs-8491fbf1c7e435016cc8eadf8079763c690c3fbd.zip
fix cronjob reschedule
avoid errors of "more than 100 jobs skipped/failed" and stopping of job by k8s
-rw-r--r--k8s/seaweedfs/templates/cronjob.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/k8s/seaweedfs/templates/cronjob.yaml b/k8s/seaweedfs/templates/cronjob.yaml
index ad4406d4f..6f4ed8c70 100644
--- a/k8s/seaweedfs/templates/cronjob.yaml
+++ b/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 }} \ No newline at end of file
+{{- end }}