Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/docker-otel-lgtm
Path: blob/main/examples/java/json-logging-ecs/k3d.sh
401 views
1
#!/bin/bash
2
3
set -euo pipefail
4
5
./build.sh
6
k3d cluster create jsonlogging || k3d cluster start jsonlogging
7
k3d image import -c jsonlogging dice:1.1-SNAPSHOT
8
9
kubectl apply -f k8s/
10
11
kubectl wait --for=condition=ready pod -l app=dice
12
kubectl wait --for=condition=ready --timeout=5m pod -l app=lgtm
13
14
kubectl port-forward service/dice 8080:8080 &
15
kubectl port-forward service/lgtm 3000:3000 &
16
17