diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml index 4b70d7f71..22012212b 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 17a633222..5871f9e24 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