@@ -34,25 +34,32 @@ spec:
34
34
volumeMounts :
35
35
- name : influxdb-persistent-storage
36
36
mountPath : /data
37
- - image : grafana/grafana:2 .1.0
37
+ - image : beta.gcr.io/google_containers/heapster_grafana:v2 .1.1
38
38
name : grafana
39
+ env :
39
40
resources :
40
41
limits :
41
42
cpu : 100m
42
43
memory : 100Mi
43
44
env :
44
- - name : " GF_AUTH_BASIC_ENABLED"
45
+ # This variable is required to setup templates in Grafana.
46
+ - name : INFLUXDB_SERVICE_URL
47
+ value : http://monitoring-influxdb:8086
48
+ # The following env variables are required to make Grafana accessible via
49
+ # the kubernetes api-server proxy. On production clusters, we recommend
50
+ # removing these env variables, setup auth for grafana, and expose the grafana
51
+ # service using a LoadBalancer or a public IP.
52
+ - name : GF_AUTH_BASIC_ENABLED
45
53
value : " false"
46
- - name : " GF_AUTH_ANONYMOUS_ENABLED"
54
+ - name : GF_AUTH_ANONYMOUS_ENABLED
47
55
value : " true"
48
- - name : " GF_AUTH_ANONYMOUS_ORG_ROLE"
49
- value : " Admin"
50
- - name : " GF_SERVER_ROOT_URL"
51
- value : " /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/"
56
+ - name : GF_AUTH_ANONYMOUS_ORG_ROLE
57
+ value : Admin
58
+ - name : GF_SERVER_ROOT_URL
59
+ value : /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
52
60
volumeMounts :
53
61
- name : grafana-persistent-storage
54
62
mountPath : /var
55
-
56
63
57
64
volumes :
58
65
- name : influxdb-persistent-storage
0 commit comments