Skip to main content

Persistent Volume Claim

A Persistent Volume Claim (PVC) in Kubernetes is a request for storage by a user. It abstracts the underlying storage details, allowing users to request specific amounts of storage without worrying about the specific underlying cloud or on-premise storage technology. PVCs are used to manage storage resources dynamically, ensuring that applications have the persistent storage they need to operate seamlessly. For more detailed information and configurations, refer to the official Kubernetes documentation on Persistent Volume Claims.

Terraform Mappings:

  • kubernetes_persistent_volume_claim.metadata[0].name
  • kubernetes_persistent_volume_claim_v1.metadata[0].name

Supported Methods​

  • GET: Get a PersistentVolumeClaim by name
  • LIST: List all PersistentVolumeClaims
  • SEARCH: Search for a PersistentVolumeClaim using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")

PersistentVolume​

A Persistent Volume Claim (PVC) is directly related to a Persistent Volume (PV). The PVC requests storage and binds to an available PV that matches its requirements for storage size and access modes. The PV represents the actual storage resource in the cluster, while the PVC provides an interface for the user or application to request and use that storage.