-
Notifications
You must be signed in to change notification settings - Fork 693
Expand file tree
/
Copy pathmain.jsonnet
More file actions
118 lines (105 loc) · 2.71 KB
/
main.jsonnet
File metadata and controls
118 lines (105 loc) · 2.71 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
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
local tempo = import '../../../tempo.libsonnet';
tempo {
_images+:: {
// images can be overridden here if desired
},
_config+:: {
cluster: 'k3d',
namespace: 'default',
querier+: {},
distributor+: {
receivers: {
jaeger: {
protocols: {
thrift_http: null,
},
},
},
},
metrics_generator+: {
pvc_size: '5Gi',
pvc_storage_class: 'local-path',
ephemeral_storage_limit_size: '2Gi',
ephemeral_storage_request_size: '1Gi',
},
backend_scheduler+: {
pvc_size: '200Mi',
pvc_storage_class: 'local-path',
},
live_store+: {
pvc_size: '5Gi',
pvc_storage_class: 'local-path',
},
memcached+: {
replicas: 1,
},
vulture+: {
replicas: 0,
// Disable search until release
tempoSearchBackoffDuration: '0s',
},
backend: 's3',
bucket: 'tempo',
tempo_query_url: 'http://query-frontend:3200',
overrides_configmap_name: 'tempo-overrides',
overrides+:: {},
},
// manually overriding to get tempo to talk to minio
tempo_config+:: {
storage+: {
trace+: {
s3+: {
endpoint: 'minio:9000',
access_key: 'tempo',
secret_key: 'supersecret',
insecure: true,
},
},
},
},
local k = import 'ksonnet-util/kausal.libsonnet',
local service = k.core.v1.service,
tempo_service:
k.util.serviceFor($.tempo_distributor_deployment)
+ service.mixin.metadata.withName('tempo'),
local container = k.core.v1.container,
local containerPort = k.core.v1.containerPort,
tempo_distributor_container+::
k.util.resourcesRequests('500m', '500Mi') +
container.withPortsMixin([
containerPort.new('jaeger-http', 14268),
]),
tempo_querier_container+::
k.util.resourcesRequests('500m', '500Mi'),
tempo_query_frontend_container+::
k.util.resourcesRequests('300m', '500Mi'),
// clear affinity so we can run multiple instances of memcached on a single node
memcached_all+: {
statefulSet+: {
spec+: {
template+: {
spec+: {
affinity: {},
},
},
},
},
},
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),
]),
),
}