github.com/looshlee/cilium@v1.6.12/examples/kubernetes/addons/prometheus/templates/03-grafana.yaml (about) 1 --- 2 apiVersion: apps/v1 3 kind: Deployment 4 metadata: 5 labels: 6 app: grafana 7 component: core 8 name: grafana 9 namespace: cilium-monitoring 10 spec: 11 replicas: 1 12 selector: 13 matchLabels: 14 app: grafana 15 template: 16 metadata: 17 labels: 18 app: grafana 19 spec: 20 containers: 21 - env: 22 - name: GF_PATHS_CONFIG 23 value: /configmap/grafana/grafana-config.ini 24 - name: GF_PATHS_PROVISIONING 25 value: /configmap/grafana/provisioning 26 image: docker.io/grafana/grafana:6.2.5 27 imagePullPolicy: IfNotPresent 28 name: grafana-core 29 readinessProbe: 30 failureThreshold: 3 31 httpGet: 32 path: /login 33 port: 3000 34 scheme: HTTP 35 volumeMounts: 36 - mountPath: /configmap/grafana 37 name: grafana-config 38 readOnly: true 39 dnsPolicy: ClusterFirst 40 restartPolicy: Always 41 volumes: 42 - configMap: 43 defaultMode: 420 44 items: 45 - key: grafana-config 46 path: grafana-config.ini 47 - key: prometheus-datasource 48 path: provisioning/datasources/prometheus.yaml 49 - key: cilium-dashboard 50 path: provisioning/cilium/cilium-dashboard.json 51 - key: cilium-operator-dashboard 52 path: provisioning/cilium/cilium-operator-dashboard.json 53 - key: dashboard-config 54 path: provisioning/dashboards/config.yaml 55 name: grafana-config 56 name: grafana-config 57 --- 58 apiVersion: v1 59 kind: Service 60 metadata: 61 labels: 62 app: grafana 63 name: grafana 64 namespace: cilium-monitoring 65 spec: 66 ports: 67 - port: 3000 68 protocol: TCP 69 targetPort: 3000 70 selector: 71 app: grafana 72 type: ClusterIP