Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP-Reverse: A Flask App with MongoDB on GKE

This project demonstrates deploying a Flask application with a MongoDB backend to Google Kubernetes Engine (GKE) using Docker, Helm, and GitHub Actions for CI/CD.

Table of Contents

Prerequisites

Setup

GCP Setup

  1. Create a GCP Project

  2. Enable the Kubernetes Engine API

    • In the GCP Console, navigate to APIs & Services > Library.
    • Enable the Kubernetes Engine API.
  3. Create a GKE Cluster

    • In the GCP Console, navigate to Kubernetes Engine > Clusters.
    • Create a new cluster.
  4. Authenticate and Configure gcloud

    • Authenticate with your GCP account:
      gcloud auth login
    • Set the default project:
      gcloud config set project YOUR_PROJECT_ID
    • Get credentials for your cluster:
      gcloud container clusters get-credentials YOUR_CLUSTER_NAME --zone YOUR_CLUSTER_ZONE

Local Setup

Clone the repository to your local machine:

git clone https://github.com/your-username/flask-app.git
cd flask-app

Usage

Deploy Locally

Build and Run Docker Container

docker build -t your-dockerhub-username/flask-app:latest .
docker run -p 5001:5001 your-dockerhub-username/flask-app:latest

Access the Flask App

Deploy to GKE

Push Changes to GitHub

git add .
git commit -m "Deploy to GKE"
git push origin main

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages