diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yaml index 0efde8f4b..110764735 100644 --- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml @@ -126,10 +126,10 @@ spec: {{- if .Values.master.metricsIntervalSec }} -metrics.intervalSeconds={{ .Values.master.metricsIntervalSec }} \ {{- end }} + {{- end }} {{- else if .Values.master.metricsPort }} -metricsPort={{ .Values.master.metricsPort }} \ {{- end }} - {{- end }} -volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \ {{- if .Values.master.disableHttp }} -disableHttp \ diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml index 616a233dd..66f6adba6 100644 --- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml @@ -185,7 +185,7 @@ spec: - containerPort: {{ .Values.volume.port }} name: swfs-vol {{- if .Values.volume.metricsPort }} - - containerPort: {{ .Values.filer.metricsPort }} + - containerPort: {{ .Values.volume.metricsPort }} name: metrics {{- end }} - containerPort: {{ .Values.volume.grpcPort }}