-
Notifications
You must be signed in to change notification settings - Fork 12
/
grafana-stack.yaml
123 lines (123 loc) · 3.25 KB
/
grafana-stack.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana-stack
labels:
app: grafana-stack
spec:
replicas: 1
selector:
matchLabels:
app: grafana-stack
template:
metadata:
labels:
app: grafana-stack
spec:
containers:
- name: grafana
image: docker.io/grafana/grafana:latest
ports:
- containerPort: 3000
hostPort: 3000
protocol: TCP
volumeMounts:
- mountPath: /etc/grafana/grafana.ini:Z
name: grafana-config
- mountPath: /var/lib/grafana:Z
name: grafana
- name: mimir
image: docker.io/grafana/mimir:latest
args:
- --config.file=/mnt/config/mimir-local-config.yaml
ports:
- containerPort: 9009
hostPort: 9009
protocol: TCP
- containerPort: 9095
hostPort: 9095
protocol: TCP
volumeMounts:
- mountPath: /tmp/mimir:Z
name: mimir
- mountPath: /mnt/config/mimir-local-config.yaml:Z
name: mimir-config
- name: loki
image: docker.io/grafana/loki:latest
args:
- --config.file=/mnt/config/loki-local-config.yaml
securityContext:
runAsUser: 1000
ports:
- containerPort: 3100
hostPort: 3100
protocol: TCP
- containerPort: 9096
hostPort: 9096
protocol: TCP
volumeMounts:
- mountPath: /tmp/loki:Z
name: loki
- mountPath: /mnt/config/loki-local-config.yaml:Z
name: loki-config
- name: tempo
image: docker.io/grafana/tempo:latest
args:
- --config.file=/mnt/config/tempo-local-config.yaml
ports:
- containerPort: 3200
hostPort: 3200
protocol: TCP
- containerPort: 4317
hostPort: 4317
protocol: TCP
- containerPort: 4318
hostPort: 4318
protocol: TCP
- containerPort: 9097
hostPort: 9097
protocol: TCP
- containerPort: 9411
hostPort: 9411
protocol: TCP
- containerPort: 14268
hostPort: 14268
protocol: TCP
volumeMounts:
- mountPath: /tmp/tempo:Z
name: tempo
- mountPath: /mnt/config/tempo-local-config.yaml:Z
name: tempo-config
volumes:
- hostPath:
path: ./grafana/data
type: Directory
name: grafana
- hostPath:
path: ./grafana/grafana.ini
type: File
name: grafana-config
- hostPath:
path: ./mimir/data
type: Directory
name: mimir
- hostPath:
path: ./mimir/mimir-local-config.yaml
type: File
name: mimir-config
- hostPath:
path: ./loki/data
type: Directory
name: loki
- hostPath:
path: ./loki/loki-local-config.yaml
type: File
name: loki-config
- hostPath:
path: ./tempo/data
type: Directory
name: tempo
- hostPath:
path: ./tempo/tempo-local-config.yaml
type: File
name: tempo-config