mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #15341 from vishh/grafana-update
Auto commit by PR queue bot
This commit is contained in:
commit
8e25b7c7bf
@ -7,6 +7,9 @@ metadata:
|
|||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
kubernetes.io/name: "Grafana"
|
kubernetes.io/name: "Grafana"
|
||||||
spec:
|
spec:
|
||||||
|
# On production clusters, consider setting up auth for grafana, and
|
||||||
|
# exposing Grafana either using a LoadBalancer or a public IP.
|
||||||
|
# type: LoadBalancer
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
@ -34,25 +34,32 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: influxdb-persistent-storage
|
- name: influxdb-persistent-storage
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
- image: grafana/grafana:2.1.0
|
- image: beta.gcr.io/google_containers/heapster_grafana:v2.1.1
|
||||||
name: grafana
|
name: grafana
|
||||||
|
env:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
env:
|
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"
|
value: "false"
|
||||||
- name: "GF_AUTH_ANONYMOUS_ENABLED"
|
- name: GF_AUTH_ANONYMOUS_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: "GF_AUTH_ANONYMOUS_ORG_ROLE"
|
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
|
||||||
value: "Admin"
|
value: Admin
|
||||||
- name: "GF_SERVER_ROOT_URL"
|
- name: GF_SERVER_ROOT_URL
|
||||||
value: "/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/"
|
value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: grafana-persistent-storage
|
- name: grafana-persistent-storage
|
||||||
mountPath: /var
|
mountPath: /var
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: influxdb-persistent-storage
|
- name: influxdb-persistent-storage
|
||||||
|
Loading…
Reference in New Issue
Block a user