A flask weather app deployed by me on Kubernetes and exposed using a service. Automated Jenkins servers on AWS for CI/CD Pipelines using Terraform and Ansible.
Developed a flask app using Python3, SQLalchemy and deployed it on Kubernetes.
Used Jenkins servers on AWS for CI/CD pipeline.
Provisioned the architecture on AWS using Terraform.
Did configuratin management of Jenkins servers on AWS using Ansible.
Deployed the app on EKS cluster using helm chart.
Steps to run the flask app
Clone the git repo.
Create a python virtual environement.
Install the requirements.txt in the environement.
Use the sample secret.ini provided below to run the app.
[main]api_key = 271d1234d3f497eed5b1d80a07b3fcd1
Run the app using flask run command.
Steps to run Dockerfile
Clone the git repository.
cd in the repository and build the Dockerfile using docker build -t <name of image you want to build>:<tag> .
(example - docker build -t weatherapp:1 .)
Check the images present using docker image ls
Run the Dockerfile using docker run -it -v <local-config-location>:<location-in-docker> -v <local-secret-location>:<location-in-docker> -p <port_to_be_served>:<port_the_website_works> <name of image you want to build>:<tag> (example - docker run -it -v ${PWD}/config:/config -v ${PWD}/secret/:/secret -p 5000:5000 weatherapp:1)