Static and dynamic PersistentVolume provisioning
So far, we've only provisioned PersistentVolume
by doing static provisioning. Now we're going to discover dynamic PersistentVolume
provisioning, which enables PersistentVolume
provisioning directly from the Kubernetes cluster.
Static versus dynamic provisioning
So far, when using static provisioning, you have learned that you have to follow this workflow:
- You create the piece of storage against the cloud provider or the backend technology.
- Then, you create the
PersistentVolume
object to serve as a Kubernetes pointer to this actual storage. - Following this, you create a Pod and a PVC to bind the PV to the Pod.
That is called static provisioning. It is static because you have to create the piece of storage before creating the PV and the PVC in Kubernetes. It works well; however, at scale, it can become more and more difficult to manage, especially if you are managing dozens of PV and PVC. Let&apos...