Skip to content

Commit 4a2aa60

Browse files
authored
grafana-file-uploaded
1 parent ae00378 commit 4a2aa60

1 file changed

Lines changed: 81 additions & 0 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: grafana-pvc
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 1Gi
11+
---
12+
apiVersion: apps/v1
13+
kind: Deployment
14+
metadata:
15+
labels:
16+
app: grafana
17+
name: grafana
18+
spec:
19+
selector:
20+
matchLabels:
21+
app: grafana
22+
template:
23+
metadata:
24+
labels:
25+
app: grafana
26+
spec:
27+
securityContext:
28+
fsGroup: 472
29+
supplementalGroups:
30+
- 0
31+
containers:
32+
- name: grafana
33+
image: grafana/grafana:8.4.4
34+
imagePullPolicy: IfNotPresent
35+
ports:
36+
- containerPort: 3000
37+
name: http-grafana
38+
protocol: TCP
39+
readinessProbe:
40+
failureThreshold: 3
41+
httpGet:
42+
path: /robots.txt
43+
port: 3000
44+
scheme: HTTP
45+
initialDelaySeconds: 10
46+
periodSeconds: 30
47+
successThreshold: 1
48+
timeoutSeconds: 2
49+
livenessProbe:
50+
failureThreshold: 3
51+
initialDelaySeconds: 30
52+
periodSeconds: 10
53+
successThreshold: 1
54+
tcpSocket:
55+
port: 3000
56+
timeoutSeconds: 1
57+
resources:
58+
requests:
59+
cpu: 250m
60+
memory: 750Mi
61+
volumeMounts:
62+
- mountPath: /var/lib/grafana
63+
name: grafana-pv
64+
volumes:
65+
- name: grafana-pv
66+
persistentVolumeClaim:
67+
claimName: grafana-pvc
68+
---
69+
apiVersion: v1
70+
kind: Service
71+
metadata:
72+
name: grafana
73+
spec:
74+
ports:
75+
- port: 3000
76+
protocol: TCP
77+
targetPort: http-grafana
78+
selector:
79+
app: grafana
80+
sessionAffinity: None
81+
type: LoadBalancer

0 commit comments

Comments
 (0)