☸️ Day 60: Persistent Volumes in Kubernetes | 100 Days of DevOps
Welcome to Day 60 of the 100 Days of DevOps series! In this lab, you’ll learn how to configure Persistent Volumes (PV) and Persistent Volume Claims (PVC) to provide persistent storage for applications running in Kubernetes.
📌 Lab Objective:
Create and mount persistent storage for a web application using Kubernetes Persistent Volumes and expose the application using a NodePort Service.
🛠️ Task Requirements:
PersistentVolume: pv-datacenter
PersistentVolumeClaim: pvc-datacenter
Pod Name: pod-datacenter
Container Name: container-datacenter
Image: httpd
Storage Class: manual
PV Capacity: 4Gi
PVC Request: 3Gi
Access Mode: ReadWriteOnce
Volume Type: hostPath
Host Path: /mnt/finance
Service Name: web-datacenter
NodePort: 30008
💻 What You’ll Configure & Verify:
🔹 Create Kubernetes PersistentVolume
🔹 Configure hostPath-based storage
🔹 Create PersistentVolumeClaim
🔹 Bind PVC with PV
🔹 Mount persistent storage into Pod
🔹 Deploy Apache HTTP web server
🔹 Expose application using NodePort Service
🔹 Verify persistent storage functionality
📚 What You’ll Learn:
Kubernetes Persistent Volumes (PV)
Persistent Volume Claims (PVC)
StorageClasses and storage binding
hostPath volume configuration
Persistent storage for containers
Exposing applications using NodePort
Real-world Kubernetes storage architecture
🌟 Why This Lab Matters:
Persistent storage is critical for stateful applications in Kubernetes. This lab demonstrates how applications can retain data even if Pods restart or move across nodes.
🎯 Series: 100 Days of DevOps
Build real-world DevOps and Kubernetes skills step by step through hands-on practical labs.
🔔 Follow OtterTech for more Kubernetes, Docker, AWS, Azure, Linux, Monitoring, and DevOps tutorials!
#Kubernetes #K8s #PersistentVolume #PVC #Storage #Containers #Docker #Kubectl #Apache #NodePort #ContainerOrchestration #CloudComputing #OtterTech #100DaysOfDevOps #Day60