From 14e4d94666b69673da0de60aa70ce85474db5efb Mon Sep 17 00:00:00 2001 From: majinghe <42570491+majinghe@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:40:30 +0800 Subject: [PATCH] add ec environment variables in helm chart (#2290) Co-authored-by: houseme --- helm/README.md | 2 ++ helm/rustfs/templates/configmap.yaml | 6 ++++++ helm/rustfs/values.yaml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/helm/README.md b/helm/README.md index ad973d59c..e9ab9c21a 100644 --- a/helm/README.md +++ b/helm/README.md @@ -22,6 +22,8 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m | config.rustfs.address | string | `":9000"` | | | config.rustfs.console_address | string | `":9001"` | | | config.rustfs.console_enable | string | `"true"` | | +| config.rustfs.domains | string | `""` | Enable virtual host mode. | +| config.rustfs.ec.storage_class_standard | string | `EC:4` | Standard storage class environment variable. | | config.rustfs.log_level | string | `"info"` | | | config.rustfs.obs_environment | string | `"development"` | | | config.rustfs.obs_log_directory | string | `"/logs"` | | diff --git a/helm/rustfs/templates/configmap.yaml b/helm/rustfs/templates/configmap.yaml index 59ba9e182..d36323fc4 100644 --- a/helm/rustfs/templates/configmap.yaml +++ b/helm/rustfs/templates/configmap.yaml @@ -82,3 +82,9 @@ data: RUSTFS_SCANNER_IDLE_MODE: {{ .idle_mode | quote }} {{- end }} {{- end }} + {{- if .Values.mode.distributed.enabled }} + {{- with .Values.config.rustfs.ec }} + RUSTFS_ERASURE_SET_DRIVE_COUNT: {{ 16 | quote }} + RUSTFS_STORAGE_CLASS_STANDARD: {{ .storage_class_standard | quote }} + {{- end }} + {{- end }} \ No newline at end of file diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 71e1d6b98..25f925133 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -68,6 +68,8 @@ config: # Optionally enable support for virtual-hosted-style requests. # See more information: https://docs.rustfs.com/integration/virtual.html domains: "" # e.g. "example.com" + ec: + storage_class_standard: "EC:4" # Storage class for standard storage class in erasure coding mode, default is "STANDARD" log_rotation: # Specify log rotation settings # size: 100 # Default value: 100 MB # time: hour # Default value: hour, eg: day,hour,minute,second