Overview
A Persistent Volume Claim (PVC) is a request for storage by a user. It is similar to a Pod. Pods consume node resources and PVCs consume PV resources. Claims can request specific size and access modes (e.g., they can be mounted ReadWriteOnce, ReadOnlyMany, or ReadWriteMany).
How it Works
- Request: A user creates a PVC specifying the amount of storage and access mode needed.
- Binding: Kubernetes looks for a PV that satisfies the claim and binds them together.
- Usage: The user then specifies the PVC in their Pod configuration to mount the storage.
Dynamic Provisioning
If no static PV matches the PVC, Kubernetes can use a StorageClass to automatically create a new PV on the fly.