Start Free Trial

Back to Home

Persistent Volume Claim

A request for storage by a user in Kubernetes that uses AWS as the underlying infrastructure.

Description

In the context of AWS and Kubernetes, a Persistent Volume Claim (PVC) is a request for storage that allows developers to specify the desired size, access modes, and other parameters for a storage resource. Once the PVC is created, Kubernetes dynamically provisions a Persistent Volume (PV) that satisfies the claim, using AWS services like Elastic Block Store (EBS) or Elastic File System (EFS). This abstraction allows developers to focus on their application needs without worrying about the underlying storage infrastructure. PVCs can be used with stateful applications like databases, where data persistence is crucial. For example, when deploying a PostgreSQL database on an Amazon EKS cluster, a PVC can be created to ensure that the database data is stored reliably and can be accessed by the pods. This capability enhances data management and resilience in cloud-native applications, allowing for seamless scaling and recovery processes.

Examples

  • Using a PVC to provision an EBS volume for a WordPress deployment on Amazon EKS.
  • Creating a PVC for a MongoDB database to ensure data is preserved across pod restarts.

Additional Information

  • PVCs can specify different access modes like ReadWriteOnce, ReadOnlyMany, or ReadWriteMany depending on the application's needs.
  • Kubernetes supports dynamic provisioning of volumes, which simplifies the deployment of storage resources in a cloud environment.

References