This repository contains an example Spring Boot app instrumented with OpenTracing and deployed on Kubernetes
-
Install minikube, Istio and Jaeger on Istio.
-
After Istio is up and running build and deploy the app:
eval $(minikube docker-env)
./mvnw clean install && docker build -t spring-boot:latest .
kubectl apply -f <(istioctl kube-inject -f app.yml)
# Optional to delete the app -> kubectl delete all,ing -l sb-demo
- Create requests:
export GATEWAY_URL=$(kubectl get po -n istio-system -l istio=ingress -o 'jsonpath={.items[0].status.hostIP}'):$(kubectl get svc istio-ingress -n istio-system -o 'jsonpath={.spec.ports[0].nodePort}')
curl $GATEWAY_URL/chaining
- Go to Jaeger UI and see the traces
minikube service jaeger-query --url -n istio-system