Course contentsShow
← Cloud and Infrastructure
Lesson 1289 of 2,98926. Kubernetes StorageFree lesson

PersistentVolume (PV) Fundamentals

Understanding PersistentVolumes as cluster-level storage resources provisioned by administrators or dynamically.

PersistentVolume (PV) Fundamentals

What You'll Learn

You'll understand PersistentVolumes as cluster-level storage resources that provide durable, shareable storage independent of Pod lifecycles.

What is a PersistentVolume?

A PersistentVolume (PV) is a piece of storage in your Kubernetes cluster that has been provisioned by an administrator or created dynamically using Storage Classes. Unlike the ephemeral storage that disappears when a Pod dies, a PV represents real, persistent storage that outlives any individual Pod.

Think of a PV like a USB drive plugged into your cluster. The drive exists independently—Pods can connect to it, use it, disconnect, and the data remains. Multiple Pods can even access it (depending on access modes), and when one Pod terminates, the storage and its data persist.

Key Characteristics

Cluster-Level Resource: PVs exist at the cluster scope, not within a specific namespace. They're managed separately from the workloads that use them.

Two Provisioning Methods:

  • Static: Administrators pre-create PVs manually, defining the storage backend (NFS, cloud disk, etc.)
  • Dynamic: PVs are automatically created on-demand when users request storage

Lifecycle Independence: A PV's lifecycle is decoupled from Pods. Delete a Pod, and the PV remains—protecting your data from accidental loss.

Storage Abstraction: PVs hide the complexity of the underlying storage system. Whether it's AWS EBS, GCP Persistent Disk, or NFS, Pods interact with storage the same way.

The Big Picture

PVs solve the storage challenges we discussed earlier by providing a standardized way to provision, manage, and consume persistent storage in Kubernetes, ensuring data survives Pod restarts, rescheduling, and failures.

Key Takeaway: PersistentVolumes are cluster-wide storage resources that exist independently of Pods, provisioned either manually by admins or automatically on-demand, providing durable data storage across Pod lifecycles.