Skip to content

Commit 98fa7d8

Browse files
committed
Merge branch 'main' of github.com:metalbear-co/local-sandbox into big-change
2 parents b18e3a5 + 934dae3 commit 98fa7d8

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
@@ -255,11 +255,33 @@ tasks:
255255
- helm uninstall loki -n loki || true
256256
- kubectl delete namespace loki --ignore-not-found=true
257257

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

264286
infra:status:
265287
desc: Check infrastructure status
@@ -274,6 +296,9 @@ tasks:
274296
- |
275297
echo -n "Loki: "
276298
kubectl get deployment loki -n loki >/dev/null 2>&1 && echo "Installed" || echo "Not installed"
299+
- |
300+
echo -n "Tempo: "
301+
kubectl get deployment tempo -n tempo >/dev/null 2>&1 && echo "Installed" || echo "Not installed"
277302
- |
278303
echo -n "Grafana: "
279304
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)