Changes that I made in app to make it working:
- I have to create a Dockerfile for containerization purpose.
- I have created a start.py file that will start the redis and flask processes as they were not getting started one after another in Docker container so this method has been used.
- for deployment purpose I have used helm charts.
- I have created docker image, stored it on ecr and then used that image in my helm chart deployment.
Steps to deploy app:
- build the image using: docker build -t greet . (run this in folder where your Dockerfile is or just reference the Dockerfile with -f tag).
- Then tag the image for uploading to ecr using: docker tag <image_ID> <ecr_repository_url>:
- deploy the helm charts using: helm install <chart_name> <Directory_name>
- To check the deployment from helm: helm list
- To check deployments we can use: kubectl get deployements
- To remove the deployment: helm uninstall <chart_name>