PersistentVolume (PV) definition
📖 Scenario: You are setting up storage for a Kubernetes cluster. You need to create a PersistentVolume (PV) that pods can use to store data persistently, even if the pod restarts or moves.
🎯 Goal: Create a Kubernetes PersistentVolume (PV) YAML definition with specific storage capacity and access mode.
📋 What You'll Learn
Create a PersistentVolume named
pv-demoSet the storage capacity to
5GiUse the access mode
ReadWriteOnceUse
hostPath as the storage backend with path /mnt/data💡 Why This Matters
🌍 Real World
PersistentVolumes provide stable storage for applications running in Kubernetes, so data is not lost when pods restart or move.
💼 Career
Understanding PersistentVolumes is essential for Kubernetes administrators and DevOps engineers managing stateful applications.
Progress0 / 4 steps