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.

feat(helm): add volume.rust toggle to run the Rust volume server (#9618)

Chris Lu8fa769f29a05
diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
index 4b70d7f71b..22012212bf 100644
--- a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
@@ -137,6 +137,9 @@ spec:
- "/bin/sh"
- "-ec"
- |
+ {{- if $volume.rust }}
+ exec /usr/bin/weed-volume \
+ {{- else }}
exec /usr/bin/weed \
{{- if $volume.logs }}
-logdir=/logs \
@@ -149,6 +152,7 @@ spec:
-v={{ $.Values.global.seaweedfs.loggingLevel }} \
{{- end }}
volume \
+ {{- end }}
-port={{ $volume.port }} \
{{- if $volume.metricsPort }}
-metricsPort={{ $volume.metricsPort }} \
@@ -180,7 +184,7 @@ spec:
{{- if $volume.imagesFixOrientation }}
-images.fix.orientation \
{{- end }}
- {{- if $volume.pulseSeconds }}
+ {{- if and $volume.pulseSeconds (not $volume.rust) }}
-pulseSeconds={{ $volume.pulseSeconds }} \
{{- end }}
{{- if $volume.index }}
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 17a633222e..5871f9e243 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -305,6 +305,11 @@ volume:
enabled: true
imageOverride: null
restartPolicy: null
+ # Run the Rust volume server (/usr/bin/weed-volume) instead of the Go one.
+ # Requires an image that ships the Rust binary (amd64/arm64). The Go-only
+ # log flags (-logtostderr/-logdir/-v) and -pulseSeconds are dropped; set log
+ # level via the RUST_LOG env var in extraEnvironmentVars if needed.
+ rust: false
port: 8080
grpcPort: 18080
metricsPort: 9327