mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-21 04:57:56 +08:00
use collection optionaly
This commit is contained in:
@@ -9,7 +9,6 @@ spec:
|
|||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
failedJobsHistoryLimit: 2
|
failedJobsHistoryLimit: 2
|
||||||
successfulJobsHistoryLimit: 2
|
successfulJobsHistoryLimit: 2
|
||||||
startingDeadlineSeconds: 300
|
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 2
|
backoffLimit: 2
|
||||||
@@ -35,7 +34,11 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
set -ex
|
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 \
|
/usr/bin/weed shell \
|
||||||
{{- if .Values.cronjob.master }}
|
{{- if .Values.cronjob.master }}
|
||||||
-master {{ .Values.cronjob.master }} \
|
-master {{ .Values.cronjob.master }} \
|
||||||
|
Reference in New Issue
Block a user