-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeployment.yaml
54 lines (54 loc) · 1.51 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
selector:
matchLabels:
app: grafana
template:
metadata:
name: grafana
labels:
app: grafana
spec:
containers:
- name: grafana
image: grafana/grafana:latest
ports:
- name: grafana
containerPort: 3000
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-storage
- mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
name: datasources
readOnly: false
subPath: datasource.yaml
- mountPath: /etc/grafana/provisioning/dashboards/dashboard.yaml
name: dashboards
readOnly: false
subPath: dashboard.yaml
- mountPath: /var/lib/grafana/dashboards/rabbitmq.json
name: dashboards
readOnly: false
subPath: rabbitmq.json
- mountPath: /var/lib/grafana/dashboards/mysql-test.json
name: dashboards
readOnly: false
subPath: mysql-test.json
volumes:
- name: grafana-storage
emptyDir: {}
- name: datasources
configMap:
defaultMode: 420
name: datasources
- name: dashboards
configMap:
defaultMode: 420
name: dashboards
- name: custom-config
configMap:
name: custom-config