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.
- 🌟 Prerequisites
- 🏗️ Architecture
- ⚙️ Setup & Installation
- 📤 Output
- 🧹 Cleaning Up Resources
- 📚 Conclusion
- 🙏 Acknowledgment
- 🖥️ Basic knowledge of Docker and Kubernetes.
- 🛠️ Tools: Docker, kubectl, and Minikube.
Below is the visual representation of the project architecture:
Run following command.
minikube start --driver docker
- Apply the
mongo-config.yaml
:kubectl apply -f mongo-config.yaml
- Apply the
mongo-secret.yaml
:kubectl apply -f mongo-secret.yaml
- Deploy MongoDB using
mongo.yaml
:kubectl apply -f mongo.yaml
- Deploy the web application using
webapp.yaml
:kubectl apply -f webapp.yaml
- Access the web app:
minikube service webapp-service
- The web application is successfully deployed and accessible.
- MongoDB serves as the database backend.
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
This project highlights the deployment of a containerized web application and database using Kubernetes. It demonstrates how to manage secrets, ConfigMaps, and scalable services.
Special thanks to Nana Janashia for her mentorship and guidance in building this project.