Skip to content

Commit 934dae3

Browse files
authored
Merge pull request #7 from metalbear-co/gemma/add-tempo-install
Add tempo installation, fix bad paths
2 parents 4f57c49 + bd43bdc commit 934dae3

2 files changed

Lines changed: 61 additions & 2 deletions

File tree

Taskfile.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,33 @@ tasks:
252252
- helm uninstall loki -n loki || true
253253
- kubectl delete namespace loki --ignore-not-found=true
254254

255+
infra:tempo:
256+
desc: Install Tempo
257+
cmds:
258+
- helm repo add grafana https://grafana.github.io/helm-charts || true
259+
- helm repo update grafana
260+
- kubectl create namespace loki --dry-run=client -o yaml | kubectl apply -f -
261+
- |
262+
helm upgrade --install tempo grafana/tempo -f k8s/tempo/tempo-values.yaml \
263+
--namespace loki \
264+
--wait --timeout=300s
265+
- |
266+
echo ""
267+
echo "=== Tempo Installed ==="
268+
echo ""
269+
270+
infra:tempo:uninstall:
271+
desc: Uninstall Tempo
272+
cmds:
273+
- helm uninstall tempo -n loki || true
274+
- kubectl delete namespace tempo --ignore-not-found=true
275+
255276
infra:all:
256277
desc: Install all infrastructure
257278
cmds:
258279
- task: infra:argo:rollouts
259280
- task: infra:loki
281+
- task: infra:tempo
260282

261283
infra:status:
262284
desc: Check infrastructure status
@@ -271,6 +293,9 @@ tasks:
271293
- |
272294
echo -n "Loki: "
273295
kubectl get deployment loki -n loki >/dev/null 2>&1 && echo "Installed" || echo "Not installed"
296+
- |
297+
echo -n "Tempo: "
298+
kubectl get deployment tempo -n tempo >/dev/null 2>&1 && echo "Installed" || echo "Not installed"
274299
- |
275300
echo -n "Grafana: "
276301
kubectl get deployment loki-grafana -n loki >/dev/null 2>&1 && echo "Installed" || echo "Not installed"
@@ -865,13 +890,13 @@ tasks:
865890
cmds:
866891
- |
867892
echo "Starting mirrord with copy_target..."
868-
{{.MIRRORD_BIN | default "mirrord"}} exec -f {{.ROOT_DIR}}/k8s/sqs-localstack/copy-target-config.json -- sleep 10
893+
{{.MIRRORD_BIN | default "mirrord"}} exec -f {{.ROOT_DIR}}/k8s/overlays/sqs-localstack/copy-target-config.json -- sleep 10
869894
870895
test:copy:target:run:long:
871896
desc: Create a long-running copy-target pod (10 minutes)
872897
cmds:
873898
- |
874-
{{.MIRRORD_BIN | default "mirrord"}} exec -f {{.ROOT_DIR}}/k8s/sqs-localstack/copy-target-config.json -- sleep 600
899+
{{.MIRRORD_BIN | default "mirrord"}} exec -f {{.ROOT_DIR}}/k8s/overlays/sqs-localstack/copy-target-config.json -- sleep 600
875900
876901
test:tls:certs:
877902
desc: Test TLS certificate configuration

k8s/tempo/tempo-values.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
global:
3+
clusterDomain: cluster.local
4+
gateway:
5+
enabled: true
6+
storage:
7+
trace:
8+
backend: local
9+
# MinIO storage configuration
10+
# Note: MinIO should not be used for production environments. This is for demonstration purposes only.
11+
minio:
12+
enabled: true
13+
mode: standalone
14+
rootUser: grafana-tempo
15+
rootPassword: supersecret
16+
buckets:
17+
# Default Tempo storage bucket
18+
- name: tempo-traces
19+
policy: none
20+
purge: false
21+
# Specifies which trace protocols to accept by the gateway.
22+
traces:
23+
otlp:
24+
grpc:
25+
enabled: true
26+
http:
27+
enabled: true
28+
zipkin:
29+
enabled: false
30+
jaeger:
31+
thriftHttp:
32+
enabled: false
33+
opencensus:
34+
enabled: false

0 commit comments

Comments
 (0)