aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2020-10-25 20:34:55 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2020-10-25 20:34:55 +0500
commit186e42345e210bc36f07ca51cdadcdaff2fc672c (patch)
treeaff67157370de0cae7d170c417d9fcebea5ac110
parent3239425c19dbcac798908dd6bd7a938a83aa4b3b (diff)
downloadseaweedfs-186e42345e210bc36f07ca51cdadcdaff2fc672c.tar.xz
seaweedfs-186e42345e210bc36f07ca51cdadcdaff2fc672c.zip
use collection optionaly
-rw-r--r--k8s/seaweedfs/templates/cronjob.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/k8s/seaweedfs/templates/cronjob.yaml b/k8s/seaweedfs/templates/cronjob.yaml
index cc8992a6a..ad4406d4f 100644
--- a/k8s/seaweedfs/templates/cronjob.yaml
+++ b/k8s/seaweedfs/templates/cronjob.yaml
@@ -9,7 +9,6 @@ spec:
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 2
successfulJobsHistoryLimit: 2
- startingDeadlineSeconds: 300
jobTemplate:
spec:
backoffLimit: 2
@@ -35,7 +34,11 @@ spec:
- -c
- |
set -ex
- echo -e "lock\nvolume.balance -force{{ if .Values.volume.dataCenter }} -dataCenter {{ .Values.volume.dataCenter }}{{ end }}{{ if .Values.cronjob.collection }} -collection {{ .Values.cronjob.collection }}{{ end }}\nvolume.fix.replication\nunlock\n" | \
+ echo -e "lock\n\
+ volume.balance -force\
+ {{ if .Values.volume.dataCenter }} -dataCenter {{ .Values.volume.dataCenter }}{{ end }}\
+ {{ if .Values.cronjob.collection }} -collection {{ .Values.cronjob.collection }}{{ end }}\n\
+ volume.fix.replication\nunlock\n" | \
/usr/bin/weed shell \
{{- if .Values.cronjob.master }}
-master {{ .Values.cronjob.master }} \