Change the image names in build scripts and manifest.yaml
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
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
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