-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrafana.yaml
64 lines (63 loc) · 1.3 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
64
# This is not a recommended configuration, and further support should be available
# from the Prometheus and Grafana communities.
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
labels:
app: strimzi
spec:
replicas: 1
selector:
matchLabels:
name: grafana
template:
metadata:
labels:
name: grafana
spec:
containers:
- name: grafana
image: grafana/grafana:7.3.7
ports:
- name: grafana
containerPort: 3000
protocol: TCP
volumeMounts:
- name: grafana-data
mountPath: /var/lib/grafana
- name: grafana-logs
mountPath: /var/log/grafana
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 15
periodSeconds: 20
volumes:
- name: grafana-data
emptyDir: {}
- name: grafana-logs
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: grafana
labels:
app: strimzi
spec:
ports:
- name: grafana
port: 3000
targetPort: 3000
protocol: TCP
selector:
name: grafana
type: ClusterIP