https://github.com/trivediayush/kubernetes-local-cluster
Nginx web server using Kubernetes on a local cluster powered by Minikube.
https://github.com/trivediayush/kubernetes-local-cluster
docker kubernetes kubernetes-cluster nginx
Last synced: 5 months ago
JSON representation
Nginx web server using Kubernetes on a local cluster powered by Minikube.
- Host: GitHub
- URL: https://github.com/trivediayush/kubernetes-local-cluster
- Owner: trivediayush
- Created: 2025-04-14T06:57:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-14T08:47:42.000Z (about 1 year ago)
- Last Synced: 2025-05-17T00:14:42.382Z (about 1 year ago)
- Topics: docker, kubernetes, kubernetes-cluster, nginx
- Homepage:
- Size: 428 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Nginx Deployment on Minikube (Local Kubernetes Cluster)
=======================================================
This project demonstrates how to deploy a basic Nginx web server using Kubernetes on a local cluster powered by Minikube.
๐ฆ Project Structure
--------------------
Kubernetes-local-cluster-Task5/
โโโ nginx-deployment.yaml # Kubernetes Deployment for Nginx
โโโ nginx-service.yaml # NodePort Service to expose Nginx
๐งฐ Prerequisites
----------------
* [Minikube](https://minikube.sigs.k8s.io/docs/)
* [kubectl](https://kubernetes.io/docs/tasks/tools/)
* Docker (used internally by Minikube)
* Windows with WSL2 (preferred setup)
๐ Steps to Run
---------------
1. Start Minikube
minikube start
2. Apply the Deployment
kubectl apply -f nginx-deployment.yaml
3. Apply the Service
kubectl apply -f nginx-service.yaml
4. Check Pods
kubectl get pods
5. Check Services
kubectl get services
6. Access the Application
minikube service nginx-service
๐ท Output
---------
You should see the default Nginx welcome page when accessing the provided NodePort URL.

๐งผ Clean Up
-----------
To delete all resources:
kubectl delete -f nginx-deployment.yaml
kubectl delete -f nginx-service.yaml
minikube stop
* * *
๐จโ๐ป Author
------------
# Ayush Trivedi