Merge pull request #15341 from vishh/grafana-update

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-10-10 14:21:01 -07:00
commit 8e25b7c7bf
2 changed files with 18 additions and 8 deletions

View File

@ -7,6 +7,9 @@ metadata:
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "Grafana"
spec:
# On production clusters, consider setting up auth for grafana, and
# exposing Grafana either using a LoadBalancer or a public IP.
# type: LoadBalancer
ports:
- port: 80
targetPort: 3000

View File

@ -34,25 +34,32 @@ spec:
volumeMounts:
- name: influxdb-persistent-storage
mountPath: /data
- image: grafana/grafana:2.1.0
- image: beta.gcr.io/google_containers/heapster_grafana:v2.1.1
name: grafana
env:
resources:
limits:
cpu: 100m
memory: 100Mi
env:
- name: "GF_AUTH_BASIC_ENABLED"
# This variable is required to setup templates in Grafana.
- name: INFLUXDB_SERVICE_URL
value: http://monitoring-influxdb:8086
# The following env variables are required to make Grafana accessible via
# the kubernetes api-server proxy. On production clusters, we recommend
# removing these env variables, setup auth for grafana, and expose the grafana
# service using a LoadBalancer or a public IP.
- name: GF_AUTH_BASIC_ENABLED
value: "false"
- name: "GF_AUTH_ANONYMOUS_ENABLED"
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: "GF_AUTH_ANONYMOUS_ORG_ROLE"
value: "Admin"
- name: "GF_SERVER_ROOT_URL"
value: "/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: Admin
- name: GF_SERVER_ROOT_URL
value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
volumeMounts:
- name: grafana-persistent-storage
mountPath: /var
volumes:
- name: influxdb-persistent-storage