diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index f5c4ed1122738..e8436d58571fa 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -53,6 +53,7 @@ This is the generated reference for the Loki Helm Chart values. "env": [], "extraArgs": {}, "extraContainers": [], + "extraEnvFrom": [], "extraVolumeMounts": [], "extraVolumes": [], "hostAliases": [], @@ -129,6 +130,15 @@ This is the generated reference for the Loki Helm Chart values.
 []
 
+ + + + adminApi.extraEnvFrom + list + Environment variables from secrets or configmaps to add to the admin-api pods +
+[]
+
@@ -3616,6 +3626,7 @@ false "env": [], "extraArgs": {}, "extraContainers": [], + "extraEnvFrom": [], "extraVolumeMounts": [], "extraVolumes": [], "hostAliases": [], @@ -3695,6 +3706,15 @@ false
 []
 
+ + + + enterpriseGateway.extraEnvFrom + list + Environment variables from secrets or configmaps to add to the enterprise gateway pods +
+[]
+
diff --git a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml index 650c72fc15983..f85bbf90014b4 100644 --- a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml +++ b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml @@ -121,6 +121,10 @@ spec: {{- if .Values.adminApi.env }} {{ toYaml .Values.adminApi.env | nindent 12 }} {{- end }} + {{- with .Values.adminApi.extraEnvFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.adminApi.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml index 746fa6142b771..d75fd5fe65492 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml @@ -114,6 +114,10 @@ spec: {{- if .Values.enterpriseGateway.env }} {{ toYaml .Values.enterpriseGateway.env | nindent 12 }} {{- end }} + {{- with .Values.enterpriseGateway.extraEnvFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.enterpriseGateway.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 7870f53393c87..a6b5c46332e73 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -821,6 +821,8 @@ adminApi: # - domain.tld # -- Additional CLI arguments for the `admin-api` target extraArgs: {} + # -- Environment variables from secrets or configmaps to add to the admin-api pods + extraEnvFrom: [] # -- Additional labels for the `admin-api` Deployment labels: {} # -- Additional annotations for the `admin-api` Deployment @@ -1099,6 +1101,8 @@ enterpriseGateway: # - domain.tld # -- Additional CLI arguments for the `gateway` target extraArgs: {} + # -- Environment variables from secrets or configmaps to add to the enterprise gateway pods + extraEnvFrom: [] # -- Additional labels for the `gateway` Pod labels: {} # -- Additional annotations for the `gateway` Pod