An open API service indexing awesome lists of open source software.

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.

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