From 0bf67a482201e412720416c5eb76e02a3f0fedf3 Mon Sep 17 00:00:00 2001 From: dongyue Date: Tue, 14 Nov 2023 18:38:51 +0800 Subject: [PATCH] fix: use metricsPort correctly --- k8s/charts/seaweedfs/templates/master-statefulset.yaml | 2 +- k8s/charts/seaweedfs/templates/volume-statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}