-
Notifications
You must be signed in to change notification settings - Fork 1
/
grafana.yaml
63 lines (63 loc) · 1.43 KB
/
grafana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: v1
kind: Service
metadata:
name: grafana
namespace: kube-system
labels:
app: grafana
spec:
type: ClusterIP
ports:
- port: 3000
selector:
app: grafana
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
namespace: kube-system
labels:
app: grafana
spec:
replicas: 1
selector:
matchLabels:
app: grafana
template:
metadata:
labels:
app: grafana
spec:
containers:
- image: grafana/grafana:7.3.0
name: grafana
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
readinessProbe:
httpGet:
path: /login
port: 3000
volumeMounts:
- name: grafana-dash-config
mountPath: /etc/grafana/provisioning/dashboards
- name: dashboard-templates
mountPath: /var/lib/grafana/dashboards
- name: grafana-source-config
mountPath: /etc/grafana/provisioning/datasources
volumes:
- name: grafana-source-config
configMap:
name: grafana-source-config
- name: grafana-dash-config
configMap:
name: grafana-dashboard-config
- name: dashboard-templates
configMap:
name: grafana-dashboards