Using EBS volumes with your application
Kubernetes has three main kinds
that are used for persistent storage. The PersistentVolume (PV) represents the actual storage in the attached storage system, in our case, an EBS volume. The other components are a StorageClass (SC), which defines the characteristics of the storage, and a PersistentVolumeClaim (PVC), which represents a request for storage that is fulfilled by a PV based on an SC.
The reason a PVC exists is that different Pods may require different types of storage, for example, storage shared between many Pods or dedicated to just one. The PVC provides an abstraction between what a developer or DevOps engineer needs for their application and the type of storage provided by the cluster administrator.
The following diagram illustrates the relationship between an EBS volume, PV, PVC, and a Pod:
Figure 12.1 – EBS volumes
It’s important to know that an EBS volume is specific to a Region...