From abe599ee4af727ddbf98320586bb20fd675eb1f9 Mon Sep 17 00:00:00 2001 From: aronneagu Date: Thu, 28 Sep 2023 14:18:54 +0100 Subject: [PATCH] Allow override internalTrafficPolicy (#4877) --- k8s/charts/seaweedfs/templates/s3-service.yaml | 1 + k8s/charts/seaweedfs/templates/volume-service.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/s3-service.yaml b/k8s/charts/seaweedfs/templates/s3-service.yaml index 32fef5d81..f111999fa 100644 --- a/k8s/charts/seaweedfs/templates/s3-service.yaml +++ b/k8s/charts/seaweedfs/templates/s3-service.yaml @@ -9,6 +9,7 @@ metadata: helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: + internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }} ports: - name: "swfs-s3" port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }} diff --git a/k8s/charts/seaweedfs/templates/volume-service.yaml b/k8s/charts/seaweedfs/templates/volume-service.yaml index 20539c5a1..67bfcacf1 100644 --- a/k8s/charts/seaweedfs/templates/volume-service.yaml +++ b/k8s/charts/seaweedfs/templates/volume-service.yaml @@ -10,6 +10,7 @@ metadata: app.kubernetes.io/managed-by: {{ .Release.Service }} spec: clusterIP: None + internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }} ports: - name: "swfs-volume" port: {{ .Values.volume.port }} @@ -27,4 +28,4 @@ spec: {{- end }} selector: app.kubernetes.io/name: {{ template "seaweedfs.name" . }} - app.kubernetes.io/component: volume \ No newline at end of file + app.kubernetes.io/component: volume