Skip to content

dodbrian/distributed-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EShop demo application

How to build source code?

make

How to run this demo?

docker run -d --name demo \
  -p 80:8080 \
  dodbrian-liveproject-tracing

Test the demo

Use curl command or open url 127.0.0.1/checkout in the browser. You should be able to see output as the followings.

➜  milestone1 git:(master) ✗ curl 127.0.0.1/checkout
You have successfully checked out your shopping cart.

Run with Istio

Install Istio

istioctl install --set profile=default --set values.pilot.traceSampling=100

Install Jaeger add-on

kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.17/samples/addons/jaeger.yaml

Mark namespace for the sidercar injection

kubectl label namespace default istio-injection=enabled --overwrite=true

Deploy Gateway and VirtualService

cd istio
kubectl apply -f manifest.yaml

Forward port to access the application

kubectl port-forward service/istio-ingressgateway 8080:80 -n istio-system

Call the application to generate traces

curl http://localhost:8080/checkout

Open Jaeger UI

Jaeger UI address: http://localhost:8080/

About

Distributed Tracing Live Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published