Skip to content

Commit e399b6a

Browse files
committed
Kubernetes: Add grafana without plugin
Signed-off-by: NotHarshhaa <[email protected]>
1 parent 0314a73 commit e399b6a

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

Diff for: grafana/grafana.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: grafana
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 10Gi
11+
---
12+
apiVersion: apps/v1
13+
kind: Deployment
14+
metadata:
15+
name: grafana
16+
spec:
17+
replicas: 1
18+
selector:
19+
matchLabels:
20+
app: grafana
21+
template:
22+
metadata:
23+
labels:
24+
app: grafana
25+
spec:
26+
volumes:
27+
- name: grafana
28+
persistentVolumeClaim:
29+
claimName: grafana
30+
containers:
31+
- name: grafana
32+
image: grafana/grafana
33+
ports:
34+
- containerPort: 3000
35+
# env:
36+
# - name: GF_INSTALL_PLUGINS
37+
# value: yesoreyeram-infinity-datasource
38+
volumeMounts:
39+
- mountPath: /var/lib/grafana
40+
name: grafana
41+
---
42+
apiVersion: v1
43+
kind: Service
44+
metadata:
45+
name: grafana
46+
spec:
47+
ports:
48+
- port: 3000
49+
nodePort: 30300
50+
selector:
51+
app: grafana
52+
type: NodePort
53+

0 commit comments

Comments
 (0)