- This code contains 2 example application written using flask
- One application connectes with other application and return the reverse string
- Nginx will be running in port 80 and pointing to 2nd app reverse_app
- Now reverse_app will communicate with main_app and then reverse the string and send it back to requestor
Docker Docker-compose
sudo ./run_docker.sh (This will use docker compose file and run all togather)
curl http://localhost/v1/api/reverse
or
curl http://$IP/v1/api/reverse
Output: {"id":"1","message":"dlroW olleH"}
kubectl create -f .
commit 1 commit 2