fix: move ec configuration from configmap to extraEnv (#2408)

This commit is contained in:
majinghe
2026-04-07 11:00:21 +08:00
committed by GitHub
parent 898857d1c9
commit 751bc3d737
3 changed files with 5 additions and 9 deletions
-1
View File
@@ -23,7 +23,6 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
| 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"` | |
-6
View File
@@ -82,9 +82,3 @@ 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 }}
+5 -2
View File
@@ -100,8 +100,11 @@ config:
extraEnv: [] # This is for setting extra environment variables in the rustfs container. It should be a list of key value pairs. For example:
# extraEnv:
# - name: RUSTFS_EXTRA_ENV
# value: "extra_value"
# - name: RUSTFS_ERASURE_SET_DRIVE_COUNT
# value: "16"
# - name: RUSTFS_STORAGE_CLASS_STANDARD
# value: "EC:4"
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount: