Skip to content

Commit 6044c53

Browse files
committed
feat(istio): tracing scripts added
1 parent 411b159 commit 6044c53

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

istio_examples/Tracing/jaeger.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
kubectl delete -f ~/istio-0.4.0/install/kubernetes/addons/zipkin.yaml
4+
kubectl apply -n istio-system -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml
5+
6+
POD_STATUS=""
7+
while [ "$POD_STATUS" != "Running" ]; do
8+
sleep 10
9+
POD_STATUS=$(kubectl get pods -l app=jaeger -n istio-system -o jsonpath='{.items[0].status.phase}')
10+
done
11+
12+
kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=jaeger -o jsonpath='{.items[0].metadata.name}') 16686:16686 &
13+
14+
echo "Jaeger running on: http://localhost:16686/"
15+
16+
### DELETE ###
17+
# lsof -c kubectl -ti:16686 -a | xargs kill
18+
# kubectl delete -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml -n istio-system

istio_examples/Tracing/zipkin.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
kubectl apply -f ~/istio-0.4.0/install/kubernetes/addons/zipkin.yaml
4+
5+
POD_STATUS=""
6+
while [ "$POD_STATUS" != "Running" ]; do
7+
sleep 10
8+
POD_STATUS=$(kubectl get pods -l app=zipkin -n istio-system -o jsonpath='{.items[0].status.phase}')
9+
done
10+
11+
kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=zipkin -o jsonpath='{.items[0].metadata.name}') 9411:9411 &
12+
13+
echo "Zipkin running on: http://localhost:9411/"
14+
15+
### DELETE ###
16+
# lsof -c kubectl -ti:9411 -a | xargs kill
17+
# kubectl delete -f ~/istio-0.4.0/install/kubernetes/addons/zipkin.yaml

0 commit comments

Comments
 (0)