forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.jsonnet
More file actions
54 lines (49 loc) · 1.44 KB
/
main.jsonnet
File metadata and controls
54 lines (49 loc) · 1.44 KB
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
local tempo = import '../../../operations/jsonnet/single-binary/tempo.libsonnet';
local dashboards = import 'dashboards/grafana.libsonnet';
local metrics = import 'metrics/prometheus.libsonnet';
local load = import 'synthetic-load-generator/main.libsonnet';
metrics + load + tempo {
dashboards:
dashboards.deploy('http://tempo:3200'),
_images+:: {
// override images here if desired
},
_config+:: {
cluster: 'k3d',
namespace: 'default',
search_enabled: true,
pvc_size: '30Gi',
pvc_storage_class: 'local-path',
receivers: {
jaeger: {
protocols: {
thrift_http: null,
},
},
},
},
local k = import 'ksonnet-util/kausal.libsonnet',
local container = k.core.v1.container,
local containerPort = k.core.v1.containerPort,
tempo_container+::
container.withPortsMixin([
containerPort.new('jaeger-http', 14268),
]),
local ingress = k.networking.v1.ingress,
local rule = k.networking.v1.ingressRule,
local path = k.networking.v1.httpIngressPath,
ingress:
ingress.new('ingress') +
ingress.mixin.metadata
.withAnnotationsMixin({
'ingress.kubernetes.io/ssl-redirect': 'false',
}) +
ingress.mixin.spec.withRules(
rule.http.withPaths([
path.withPath('/')
+ path.withPathType('ImplementationSpecific')
+ path.backend.service.withName('grafana')
+ path.backend.service.port.withNumber(3000),
]),
),
}