Skip to content

sp9dev/lsc-06

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Web Application with NFS

1. Start Minikube

minikube start

2. Install NFS Server Provisioner

helm install nfs-server-provisioner stable/nfs-server-provisioner \
  --set storageClass.name=nfs-sc

3. Apply Kubernetes Manifests

Deploy the resources:

kubectl apply -f k8s/pvc.yaml
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yaml
kubectl apply -f k8s/job.yaml

PVC requests NFS-backed storage.

  • Deployment runs nginx serving content from the PVC.
  • Service exposes nginx.
  • Job seeds the PVC with index.html

4. Access the Application

minikube service http-service

This opens the exposed Service in your browser. You should see the page seeded into the PVC by the Job.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages