[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:
Yuvi Panda
2017-12-15 11:21:50 +01:00
committed by Reinhard Nägele
parent c41350aae6
commit f3b3f3ce5b
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -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 | {} |
+4
View File
@@ -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:
+1
View File
@@ -8,6 +8,7 @@ server:
##
image: "grafana/grafana:latest"
extraEnv: {}
nodeSelector: {}
tolerations: []