mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/grafana] Allow setting extra env variables on server (#2903)
* [stable/grafana] Allow setting extra env variables on server This allows keeping secret config items (such as auth keys) separate from non-secret config items by setting them in env variables. * [stable/grafana] Bump chart version * [stable/grafana] Try to fix tests
This commit is contained in:
committed by
Reinhard Nägele
parent
c41350aae6
commit
f3b3f3ce5b
@@ -50,3 +50,4 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `server.service.externalIPs` | External IP addresses | null |
|
||||
| `server.service.type` | ClusterIP, NodePort, or LoadBalancer| ClusterIP |
|
||||
| `server.setDatasource.enabled` | Creates grafana datasource with job | false |
|
||||
| `server.extraEnv` | Extra environment variables to set in the server container | {} |
|
||||
|
||||
@@ -51,6 +51,10 @@ spec:
|
||||
name: {{ template "grafana.server.fullname" . }}-config
|
||||
key: grafana-install-plugins
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.server.extraEnv }}
|
||||
- name: {{ $key | quote }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
readinessProbe:
|
||||
|
||||
@@ -8,6 +8,7 @@ server:
|
||||
##
|
||||
image: "grafana/grafana:latest"
|
||||
|
||||
extraEnv: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user