Welcome to this lesson on Persistent Volume Claims (PVCs) in Kubernetes. In this article, we will walk through the process of creating a PVC, explain how Kubernetes binds PVCs to Persistent Volumes (PVs), and discuss reclaim policies for managing storage efficiently. Before you create a PVC, ensure that one or more persistent volumes are available in your cluster. Remember, persistent volumes and persistent volume claims are separate Kubernetes objects. Typically, an administrator creates a pool of persistent volumes, while a user creates PVCs to request and access that storage. When a PVC is created, Kubernetes searches for an appropriate PV that meets the requested capacity and matching properties such as access modes, volume modes, and storage class. Each PVC is bound to a single PV based on a best-match algorithm. The diagram below illustrates the relationship between PVCs and PVs:Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.

Even if the PVC requests a smaller amount of storage, it may bind to a larger PV if all other criteria match and no better option is available. Once a PV is bound to a PVC, its remaining capacity cannot be used for other claims.
Creating a Persistent Volume Claim
Let’s create a persistent volume claim using a YAML template. In this example, the API version is set to v1 and the kind is PersistentVolumeClaim. The claim is named “myclaim”. Under the specification, we set the access mode to ReadWriteOnce and request 500Mi of storage. Below is the YAML definition for the PVC:Deleting a Persistent Volume Claim and Reclaim Policies
To delete a PVC, use the following command:Reclaim Policy Options
The default reclaim policy is set to Retain, which means the PV remains available until manually deleted by an administrator:To practice configuring and troubleshooting persistent volumes and claims in Kubernetes, review the above configurations and experiment with these commands on your cluster.
Summary
In this lesson, we covered:- PVC and PV Concepts: How PVCs bind to suitable PVs based on capacity and properties.
- Configuration Example: Creating a PVC using a YAML file.
- PVC Creation Process: Binding status and troubleshooting.
- Reclaim Policies: How PVs behave after their associated PVC is deleted.