add kms environment variables support in helm chart (#2552)

Co-authored-by: loverustfs <hello@rustfs.com>
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
majinghe
2026-04-16 10:43:54 +08:00
committed by GitHub
parent b2b92de26c
commit 4615791193
4 changed files with 33 additions and 2 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ apiVersion: v2
name: rustfs
description: RustFS helm chart to deploy RustFS on kubernetes cluster.
type: application
version: 0.0.91
appVersion: "1.0.0-alpha.91"
version: 0.0.93
appVersion: "1.0.0-alpha.93"
home: https://rustfs.com
icon: https://media.sys.truenas.net/apps/rustfs/icons/icon.svg
maintainers:
+14
View File
@@ -82,3 +82,17 @@ data:
RUSTFS_SCANNER_IDLE_MODE: {{ .idle_mode | quote }}
{{- end }}
{{- end }}
{{- if .Values.config.rustfs.kms.enabled }}
{{- if eq .Values.config.rustfs.kms.type "vault" }}
{{- with .Values.config.rustfs.kms.vault }}
RUSTFS_KMS_ENABLE: "true"
RUSTFS_KMS_BACKEND: {{ .vault_backend | quote }}
RUSTFS_KMS_VAULT_ADDRESS: {{ .vault_address | quote }}
RUSTFS_KMS_VAULT_TOKEN: {{ .vault_token | quote }}
RUSTFS_KMS_DEFAULT_KEY_ID: {{ .default_key | quote }}
{{- if eq .vault_backend "vault-transit" }}
RUSTFS_KMS_VAULT_MOUNT_PATH: {{ .vault_mount_path | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
+10
View File
@@ -97,6 +97,16 @@ config:
profiling:
enabled: false
endpoint: "" # If specified, rustfs will export profiling data to this endpoint. e.g. "http://localhost:6060/debug/pprof/profile"
kms:
enabled: true
type: "vault" # Only Support vault currently.
vault:
vault_backend: "" # Only support vault kv2 and vault transit.
vault_address: ""
vault_token: ""
vault_mount_path: ""
default_key: ""
extraEnv: [] # This is for setting extra environment variables in the rustfs container. It should be a list of key value pairs. For example:
# extraEnv: