Skip to content

pratik-mahalle/Zero-to-Production

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask App on Amazon EKS

GitHub release (latest by date including pre-releases) GitHub last commit GitHub issues GitHub pull requests GitHub

This project demonstrates how to containerize a simple Flask application and deploy it on Amazon EKS (Elastic Kubernetes Service).


🚀 Quick Start Demo

Demo Preview

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

🧭 Table of Contents


⚙️ Installation

(Back to top)

Make sure you have Docker, AWS CLI, kubectl, eksctl, and Helm installed.

1. Clone the repo

git clone https://github.com/your-username/zero-to-production.git
cd zero-to-production

2. Build the Docker image

docker build -t flask-app:latest .

3. Push to ECR (Optional)

Follow AWS ECR instructions.

4. Create EKS Cluster

eksctl create cluster --name flask-cluster --region us-west-2 --nodes 2

📦 Usage

(Back to top)

Deploy Flask App

kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yaml

Check External IP

kubectl get svc flask-service

Access the app using the external IP in your browser.


🛠️ Development

(Back to top)

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.py

🤝 Contribute

(Back to top)

Want to contribute? Awesome! Open a pull request or issue. Contributions and suggestions are always welcome.


📄 License

This project is licensed under the MIT license.

About

Deploying a Cloud-Native App using Docker, GitHub Actions, and EC2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published