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.

Support volume server ID in Helm chart (#7867)

Sheya Bernstein911aca74f329
diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
index 6a551a6c98..045b95c2e6 100644
--- a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
@@ -176,6 +176,9 @@ spec:
{{- if $volume.dataCenter }}
-dataCenter={{ $volume.dataCenter }} \
{{- end }}
+ {{- if $volume.id }}
+ -id={{ $volume.id }} \
+ {{- end }}
-ip.bind={{ $volume.ipBind }} \
-readMode={{ $volume.readMode }} \
{{- if $volume.whiteList }}
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index dd14f1ca01..c4fd3a841b 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -401,6 +401,10 @@ volume:
# Volume server's rack name
rack: null
+ # Stable identifier for the volume server, independent of IP address
+ # Useful for Kubernetes environments with hostPath volumes to maintain stable identity
+ id: null
+
# Volume server's data center name
dataCenter: null