Skip to content

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.

helm: add Iceberg REST catalog support to S3 service (#8193)

Yalın Doğu Şahin47fc9e771ff7
diff --git a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
index a6da252a52..c3bd78ad85 100644
--- a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
+++ b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
@@ -150,6 +150,9 @@ spec:
-auditLogConfig=/etc/sw/s3_auditLogConfig.json \
{{- end }}
-filer={{ include "seaweedfs.componentName" (list . "filer-client") }}.{{ .Release.Namespace }}:{{ .Values.filer.port }} \
+ {{- if .Values.s3.icebergPort }}
+ -port.iceberg={{ .Values.s3.icebergPort }} \
+ {{- end }}
{{- range .Values.s3.extraArgs }}
{{ . }} \
{{- end }}
@@ -192,6 +195,10 @@ spec:
- containerPort: {{ .Values.s3.httpsPort }}
name: swfs-s3-tls
{{- end }}
+ {{- if .Values.s3.icebergPort }}
+ - containerPort: {{ .Values.s3.icebergPort }}
+ name: swfs-iceberg
+ {{- end }}
{{- if .Values.s3.metricsPort }}
- containerPort: {{ .Values.s3.metricsPort }}
name: metrics
diff --git a/k8s/charts/seaweedfs/templates/s3/s3-service.yaml b/k8s/charts/seaweedfs/templates/s3/s3-service.yaml
index 47d709c8a4..344677d883 100644
--- a/k8s/charts/seaweedfs/templates/s3/s3-service.yaml
+++ b/k8s/charts/seaweedfs/templates/s3/s3-service.yaml
@@ -21,6 +21,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.icebergPort }}
+ - name: "swfs-iceberg"
+ port: {{ .Values.s3.icebergPort }}
+ targetPort: {{ .Values.s3.icebergPort }}
+ protocol: TCP
+{{- end }}
{{- if and .Values.s3.enabled .Values.s3.httpsPort }}
- name: "swfs-s3-tls"
port: {{ .Values.s3.httpsPort }}
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index f9d93dab6d..f7a05ce172 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -909,6 +909,9 @@ s3:
# add additional https port
httpsPort: 0
metricsPort: 9327
+ # Iceberg catalog REST port (Apache Iceberg REST Catalog API)
+ # Set to a port number to enable, or 0/null to disable
+ icebergPort: null
loggingOverrideLevel: null
# enable user & permission to s3 (need to inject to all services)
enableAuth: false