What Is Dynamic Volume Provisioning?
There might be a case when the PersistentVolumeClaims (request for storage) does not match with the Persistent Volume created by the administrator. In this case, the cluster dynamically provisions the volume for the PVC. This is implemented using the concept of StorageClass.
First, the administrator defines the StorageClass that contains the fields provisioner, parameters, and reclaimPolicy. Then, the PVC requests the StorageClass to dynamically provision the storage volumes to the pod. You can understand the entire workflow through the below points.
- The pods create a PVC object specifying its storage requirements, such as storage class, access mode, and storage size. Then, they submit it to the Kubernetes API server.
- Kubernetes evaluates the PVC and selects an appropriate StorageClass based on the requested parameters. The selected StorageClass determines the type of storage to be provisioned and the backend storage provider to use.
- After determining the Storage Class, Kubernetes requests the corresponding provisioner to dynamically provision a PersistentVolume (PV) as per the PVC’s requirements.
- After the PV is provisioned, Kubernetes automatically binds it to the requesting PVC so that the pod can access the storage volumes. Hence, the pod can read from and write to the volume as needed, ensuring data persistence across pod restarts and rescheduling events.
Kubernetes Volume Provisioning: Dynamic VS Static
Are you facing issues in allocating resources in the Kubernetes Environment? If yes, look no further guides. We are here to help you with this insightful article which covers a detailed explanation of the Kubernetes Volume Provisioning. If you reach to end of this guide, all your doubts about the Kubernetes Volume Provisioning will be resolved.
Deploying applications in the form of containers is one of the most widely acceptable approaches in today’s world. But, allocating storage to those containers is equally important. This helps us to ensure the durability and high availability of the containerized workloads. Hence, it becomes important to learn various Volume Provisioning Strategies to make our Kubernetes Environment scalable.
In this article, we will learn about Volume Provisioning and its types namely, static and dynamic. So, let us start without any delay.
Table of Content
- Overview Of Kubernetes
- What Is Volume Provisioning?
- What Is Static Volume Provisioning?
- Implementation of Static Volume Provisioning
- What Is Dynamic Volume Provisioning?
- Implementation Of Dynamic Volume Provisioning
- Static Vs Dynamic Volume Provisioning: Key Differences
- Conclusion
- Kubernetes Volume Provisioning – FAQ’s