Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/docker-otel-lgtm
Path: blob/main/k8s/lgtm.yaml
401 views
1
# this is intended for demo / testing purposes only, not for production usage
2
apiVersion: v1
3
kind: Service
4
metadata:
5
name: lgtm
6
spec:
7
selector:
8
app: lgtm
9
ports:
10
- name: grafana
11
protocol: TCP
12
port: 3000
13
targetPort: 3000
14
- name: otel-grpc
15
protocol: TCP
16
port: 4317
17
targetPort: 4317
18
- name: otel-http
19
protocol: TCP
20
port: 4318
21
targetPort: 4318
22
---
23
apiVersion: apps/v1
24
kind: Deployment
25
metadata:
26
name: lgtm
27
spec:
28
replicas: 1
29
selector:
30
matchLabels:
31
app: lgtm
32
template:
33
metadata:
34
labels:
35
app: lgtm
36
spec:
37
containers:
38
- name: lgtm
39
image: grafana/otel-lgtm:latest
40
ports:
41
- containerPort: 3000
42
- containerPort: 4317
43
- containerPort: 4318
44
readinessProbe:
45
exec:
46
command:
47
- cat
48
- /tmp/ready
49
# NOTE: By default OpenShift does not allow writing the root directory.
50
# Thats why the data dirs for grafana, prometheus and loki can not be
51
# created and the pod never becomes ready.
52
# See: https://github.com/grafana/docker-otel-lgtm/issues/132
53
volumeMounts:
54
- name: grafana-data
55
mountPath: /otel-lgtm/grafana/data
56
- name: loki-storage
57
mountPath: /loki
58
- name: p8s-storage
59
mountPath: /data/prometheus
60
volumes:
61
- name: grafana-data
62
emptyDir: {}
63
- name: loki-storage
64
emptyDir: {}
65
- name: p8s-storage
66
emptyDir: {}
67
68