Persistent Volumes & Persistent Volume Claims
Understand how to dynamically provision and consume storage in Kubernetes using PVs and PVCs.
Ephemeral Pods, Persistent Data
In Kubernetes, Pods are designed to be temporary and replaceable. If a Pod crashes or is rescheduled, any data stored directly within it is lost.
This ephemeral nature is great for stateless applications, but what about applications that need to store data persistently, like databases or file servers?
Introducing Persistent Volumes
A Persistent Volume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically by Kubernetes.
It's an abstraction of the underlying storage (like a cloud disk, NFS share, or local disk), making it available for use by Pods without them needing to know the storage's specifics.
All lessons in this course
- Persistent Volumes & Persistent Volume Claims
- Managing Stateful Applications with StatefulSets
- ConfigMaps & Secrets for Configuration
- Storage Classes and Dynamic Provisioning