From 4f2bdebe4949febd1c3d69f5a01586a482d9cb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erwan=20de=20L=C3=A9pinau?= Date: Fri, 13 Sep 2024 15:51:12 +0200 Subject: [PATCH] helm chart: add s3 and s3-tls ports where missing (#6016) --- k8s/charts/seaweedfs/templates/filer-statefulset.yaml | 8 ++++++++ k8s/charts/seaweedfs/templates/s3-deployment.yaml | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index 49b62e867..d02099e50 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -249,6 +249,14 @@ spec: name: metrics - containerPort: {{ .Values.filer.grpcPort }} #name: swfs-filer-grpc + {{- if .Values.filer.s3.enabled }} + - containerPort: {{ .Values.filer.s3.port }} + name: swfs-s3 + {{- if .Values.filer.s3.httpsPort }} + - containerPort: {{ .Values.filer.s3.httpsPort }} + name: swfs-s3-tls + {{- end }} + {{- end }} {{- if .Values.filer.readinessProbe.enabled }} readinessProbe: httpGet: diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yaml index b678a0eff..02c1ed21a 100644 --- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml @@ -176,9 +176,13 @@ spec: ports: - containerPort: {{ .Values.s3.port }} name: swfs-s3 + {{- if .Values.s3.httpsPort }} + - containerPort: {{ .Values.s3.httpsPort }} + name: swfs-s3-tls + {{- end }} {{- if .Values.s3.metricsPort }} - containerPort: {{ .Values.s3.metricsPort }} - name: "metrics" + name: metrics {{- end }} {{- if .Values.s3.readinessProbe.enabled }} readinessProbe: