SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
chart with optional https port for s3 (#4507)
Konstantin Lebedev051501414928
diff --git a/k8s/charts/seaweedfs/templates/filer-service.yaml b/k8s/charts/seaweedfs/templates/filer-service.yamlindex 9a0fba8a49..ac44fa42b0 100644--- a/k8s/charts/seaweedfs/templates/filer-service.yaml+++ b/k8s/charts/seaweedfs/templates/filer-service.yaml@@ -25,6 +25,12 @@ spec:port: {{ .Values.filer.s3.port }}targetPort: {{ .Values.filer.s3.port }}protocol: TCP+ {{- if .Values.filer.s3.httpsPort }}+ - name: "swfs-s3-tls"+ port: {{ .Values.filer.s3.httpsPort }}+ targetPort: {{ .Values.filer.s3.httpsPort }}+ protocol: TCP+ {{- end }}{{- end }}{{- if .Values.filer.metricsPort }}- name: "metrics"diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yamlindex d472569cc3..054ad1ccdd 100644--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml@@ -163,6 +163,9 @@ spec:-s3.domainName={{ .Values.filer.s3.domainName }} \{{- end }}{{- if .Values.global.enableSecurity }}+ {{- if .Values.filer.s3.httpsPort }}+ -s3.port.https={{ .Values.filer.s3.httpsPort }} \+ {{- end }}-s3.cert.file=/usr/local/share/ca-certificates/client/tls.crt \-s3.key.file=/usr/local/share/ca-certificates/client/tls.key \{{- end }}diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yamlindex d4541a6328..8565b6c816 100644--- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml@@ -90,6 +90,9 @@ spec:-metricsPort {{ .Values.s3.metricsPort }} \{{- end }}{{- if .Values.global.enableSecurity }}+ {{- if .Values.s3.httpsPort }}+ -port.https={{ .Values.s3.httpsPort }} \+ {{- end }}-cert.file=/usr/local/share/ca-certificates/client/tls.crt \-key.file=/usr/local/share/ca-certificates/client/tls.key \{{- end }}diff --git a/k8s/charts/seaweedfs/templates/s3-service.yaml b/k8s/charts/seaweedfs/templates/s3-service.yamlindex 122b33298c..133ce33724 100644--- a/k8s/charts/seaweedfs/templates/s3-service.yaml+++ b/k8s/charts/seaweedfs/templates/s3-service.yaml@@ -12,6 +12,12 @@ spec:port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}targetPort: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}protocol: TCP+{{- if and .Values.s3.enabled .Values.s3.httpsPort }}+ - name: "swfs-s3-tls"+ port: {{ .Values.s3.httpsPort }}+ targetPort: {{ .Values.s3.httpsPort }}+ protocol: TCP+{{- end }}{{- if and .Values.s3.enabled .Values.s3.metricsPort }}- name: "metrics"port: {{ .Values.s3.metricsPort }}diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 05bdf4f697..3ed0f5d55d 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -428,6 +428,8 @@ filer:s3:enabled: trueport: 8333+ # add additional https port+ httpsPort: 0# allow empty foldersallowEmptyFolder: false# Suffix of the host name, {bucket}.{domainName}@@ -446,6 +448,8 @@ s3:replicas: 1bindAddress: 0.0.0.0port: 8333+ # add additional https port+ httpsPort: 0metricsPort: 9327loggingOverrideLevel: null# allow empty folders