This project demonstrates how to containerize a simple Flask application and deploy it on Amazon EKS (Elastic Kubernetes Service).
This project walks you through:
- Creating a Docker image for a Flask app
- Deploying it to a Kubernetes cluster hosted on EKS
- Accessing it through a LoadBalancer or Ingress
- Flask App on Amazon EKS
- Quick Start Demo
- Table of Contents
- Installation
- Usage
- Development
- Contribute
- License
Make sure you have Docker, AWS CLI, kubectl, eksctl, and Helm installed.
git clone https://github.com/your-username/zero-to-production.git
cd zero-to-productiondocker build -t flask-app:latest .Follow AWS ECR instructions.
eksctl create cluster --name flask-cluster --region us-west-2 --nodes 2kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yamlkubectl get svc flask-serviceAccess the app using the external IP in your browser.
Want to run it locally?
# Create a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run the Flask app
python app.pyWant to contribute? Awesome! Open a pull request or issue. Contributions and suggestions are always welcome.
This project is licensed under the MIT license.
