diff --git a/helm/README.md b/helm/README.md index e9ab9c21a..1950cdecd 100644 --- a/helm/README.md +++ b/helm/README.md @@ -48,6 +48,7 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m | config.rustfs.obs_endpoint.logs.endpoint | string | `""` | Remote endpoint url for logs. | | config.rustfs.obs_endpoint.profiling.enabled | bool | `false` | Whether to send profiling to remote endpoint. | | config.rustfs.obs_endpoint.profiling.endpoint | string | `""` | Remote endpoint url for profiling. | +| extraEnv | list | `[]` | Extra environment variables for RustFS container. | | containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | | | containerSecurityContext.readOnlyRootFilesystem | bool | `true` | | | containerSecurityContext.runAsNonRoot | bool | `true` | | diff --git a/helm/rustfs/Chart.yaml b/helm/rustfs/Chart.yaml index f61a791d3..68529b9cf 100644 --- a/helm/rustfs/Chart.yaml +++ b/helm/rustfs/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: rustfs description: RustFS helm chart to deploy RustFS on kubernetes cluster. type: application -version: 0.0.86 -appVersion: "1.0.0-alpha.86" +version: 0.0.91 +appVersion: "1.0.0-alpha.91" home: https://rustfs.com icon: https://media.sys.truenas.net/apps/rustfs/icons/icon.svg maintainers: diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index e57da1f7c..550f6f9a7 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -89,6 +89,10 @@ spec: containerPort: {{ .Values.service.endpoint.port }} - name: console containerPort: {{ .Values.service.console.port }} + {{- with .Values.extraEnv }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} envFrom: - configMapRef: name: {{ include "rustfs.fullname" . }}-config diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index 1ce1d77b8..89577c229 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -108,6 +108,10 @@ spec: containerPort: {{ .Values.service.endpoint.port }} - name: console containerPort: {{ .Values.service.console.port }} + {{- with .Values.extraEnv }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} envFrom: - configMapRef: name: {{ include "rustfs.fullname" . }}-config diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index aa356d10e..1896261bb 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -98,6 +98,11 @@ config: enabled: false endpoint: "" # If specified, rustfs will export profiling data to this endpoint. e.g. "http://localhost:6060/debug/pprof/profile" +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" + # This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/ serviceAccount: # Specifies whether a service account should be created