8000 GitHub - iambotcoder/host-Web-App-using-kubernetes: A Kubernetes project deploying a web application with MongoDB as the database, showcasing containerized app orchestration and scalability.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A Kubernetes project deploying a web application with MongoDB as the database, showcasing containerized app orchestration and scalability.

Notifications You must be signed in to change notification settings

iambotcoder/host-Web-App-using-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Kubernetes Web Application with MongoDB

📝 Overview

This project demonstrates deploying a web application integrated with a MongoDB database using Kubernetes. It showcases the power of container orchestration, scalability, and efficient resource management.


📑 Table of Contents


🌟 Prerequisites

  • 🖥️ Basic knowledge of Docker and Kubernetes.
  • 🛠️ Tools: Docker, kubectl, and Minikube.

🏗️ Architecture

Below is the visual representation of the project architecture:

Screenshot 2025-01-25 112605


📝Project Outline

Screenshot 2025-01-25 112751

⚙️ Setup & Installation

🐳 Start a local Kubernetes cluster using Docker as the virtualization driver.

Run following command.

minikube start --driver docker

☸️ Kubernetes Deployment

  1. Apply the mongo-config.yaml:
    kubectl apply -f mongo-config.yaml
  2. Apply the mongo-secret.yaml:
    kubectl apply -f mongo-secret.yaml
  3. Deploy MongoDB using mongo.yaml:
    kubectl apply -f mongo.yaml
  4. Deploy the web application using webapp.yaml:
    kubectl apply -f webapp.yaml
  5. Access the web app:
    minikube service webapp-service

📤 Output

  • The web application is successfully deployed and accessible.
  • MongoDB serves as the database backend.

Kubernetes Output


🧹 Cleaning Up Resources

Run the following commands to delete the Kubernetes resources:

kubectl delete -f webapp.yaml
kubectl delete -f mongo.yaml
kubectl delete -f mongo-secret.yaml
kubectl delete -f mongo-config.yaml

Stop Minikube:

minikube delete

📚 Conclusion

This project highlights the deployment of a containerized web application and database using Kubernetes. It demonstrates how to manage secrets, ConfigMaps, and scalable services.


🙏 Acknowledgment

Special thanks to Nana Janashia for her mentorship and guidance in building this project.

About

A Kubernetes project deploying a web application with MongoDB as the database, showcasing containerized app orchestration and scalability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0