From 1d6c443b174b29c0927676db2e54f6e71ec24539 Mon Sep 17 00:00:00 2001 From: LazyDBA247-Anyvision Date: Thu, 10 Sep 2020 09:19:49 +0300 Subject: [PATCH] add podManagementPolicy to start all volume server in parallel fix indent & remove spaces --- k8s/seaweedfs/templates/volume-statefulset.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/k8s/seaweedfs/templates/volume-statefulset.yaml b/k8s/seaweedfs/templates/volume-statefulset.yaml index 9c6ddcd9f..bd06ef60e 100644 --- a/k8s/seaweedfs/templates/volume-statefulset.yaml +++ b/k8s/seaweedfs/templates/volume-statefulset.yaml @@ -12,6 +12,7 @@ metadata: spec: serviceName: {{ template "seaweedfs.name" . }}-volume replicas: {{ .Values.volume.replicas }} + podManagementPolicy: Parallel selector: matchLabels: app: {{ template "seaweedfs.name" . }} @@ -33,7 +34,7 @@ spec: restartPolicy: {{ default .Values.global.restartPolicy .Values.volume.restartPolicy }} {{- if .Values.volume.tolerations }} tolerations: - {{ tpl .Values.volume.tolerations . | nindent 8 | trim }} + {{ tpl .Values.volume.tolerations . | nindent 8 | trim }} {{- end }} {{- if .Values.global.imagePullSecrets }} imagePullSecrets: @@ -62,7 +63,7 @@ spec: fieldRef: fieldPath: status.hostIP - name: SEAWEEDFS_FULLNAME - value: "{{ template "seaweedfs.name" . }}" + value: "{{ template "seaweedfs.name" . }}" command: - "/bin/sh" - "-ec"