1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

Add the possibility to mount grafana config (#1047)

* Add the possibility to mount grafana config

* Bump grafana version

* Bump kube-prometheus version

* Rebase master and bump grafan and kube-prometheus versions
This commit is contained in:
abelgana
2018-03-23 03:44:22 -04:00
committed by Giancarlo Rubio
parent 153dd425a4
commit 0971f911e2
5 changed files with 19 additions and 5 deletions

View File

@@ -8,4 +8,4 @@ maintainers:
name: grafana
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.22
version: 0.0.23

View File

@@ -39,10 +39,14 @@ spec:
key: password
{{- if .Values.extraVars }}
{{ toYaml .Values.extraVars | indent 8 }}
{{- end }}
{{- end }}
volumeMounts:
- name: grafana-storage
mountPath: /var/lib/grafana
{{- if .Values.mountGrafanaConfig }}
- name: grafana-config
mountPath: /etc/grafana
{{- end }}
ports:
- name: web
containerPort: 3000
@@ -53,7 +57,7 @@ spec:
periodSeconds: 1
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
failureThreshold: 10
resources:
requests:
memory: 100Mi
@@ -106,3 +110,9 @@ spec:
- name: grafana-dashboards
configMap:
name: {{ template "grafana.server.fullname" . }}
{{- if .Values.mountGrafanaConfig }}
- name: grafana-config
hostPath:
path: /etc/grafana
type: directory
{{- end }}

View File

@@ -20,6 +20,10 @@ annotations: {}
# value: extra-var-value-2
extraVars:
## Change to true override Grafana's default config.
## Make sure grafana.ini is present on /etc/grafana
mountGrafanaConfig: false
adminUser: "admin"
adminPassword: "admin"

View File

@@ -9,4 +9,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.37
version: 0.0.38

View File

@@ -52,7 +52,7 @@ dependencies:
condition: deployExporterNode
- name: grafana
version: 0.0.22
version: 0.0.23
#e2e-repository: file://../grafana
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
condition: deployGrafana