Skip to content

App to demonstrate using AWS X-Ray for application tracing in python apps on kubernetes

Notifications You must be signed in to change notification settings

pksinghus/xray-python-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Before you proceed

Change the image names in build scripts and manifest.yaml

Deploying the app

Build and push images -

cd xray
./build.sh
cd ../feapp
./build.sh
cd ../colorapp
./build.sh
cd ..

Deploy x-ray daemonset -

kubectl apply -f xray-k8s-daemonset.yaml

Deploy application manifests -

kubectl apply -f manifest.yaml

Testing the app

Launch a curler in the xray namespace created by the manifests -

kubectl -n xray run -it curler --image=tutum/curl /bin/bash

Call the front app -

curl front:8080/color;echo;
> blue
curl front:8080/ping;echo;
> Pong

Call the color app directly -

curl color:8080/;echo;
> blue

Noteworthy

In manifest.yaml -

          env:
            - name: AWS_XRAY_DAEMON_ADDRESS
              value: xray-service.default:2000

In xray-k8s-daemonset.yaml

    spec:
      hostNetwork: true
      containers:
      - name: xray-daemon
        ports:
        - name: xray-ingest
          hostPort: 2000

X-Ray screenshot X-Ray screenshot

About

App to demonstrate using AWS X-Ray for application tracing in python apps on kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published