Understanding how to mount a PersistentVolume to your Pod claims
So far, we've learned that Kubernetes makes use of two objects to deal with persistent storage technologies. The first one is PersistentVolumes
, which represents a piece of storage, and we quoted Google Cloud PD and Amazon EBS volumes as possible backends for PersistentVolume
. Additionally, we discovered that depending on the technology that PersistentVolume
is relying on, it is going to be exposed to one or more Pods using access modes.
That being said, we can now try to mount a PersistentVolume
object to a Pod. To do that, we will need to use another object, which is the second object we need to explore in this chapter, called PersistentVolumeClaim
.
Introducing PersistentVolumeClaim
Just like PersistentVolume
and ConfigMap
, PersistentVolumeClaim
is another independent resource kind living within your Kubernetes cluster and is the second resource kind that we're going to examine in this chapter.