What Is Static Volume Provisioning?
Static volume provisioning in Kubernetes refers to the manual allocation and configuration of storage volumes before they are needed by pods. Static provisioning requires administrators to pre-allocate and manage storage resources in advance so that the data remains persistent after the containers stop running. This is implemented using the Persistent Volumes (storage resources in Kubernetes) and PersistentVolumes Claims (PVC), which are the requests made by pods for storage. This process is illustrated as shown below.
- Administrators manually create PV objects with the desired storage configurations using YAML or JSON.
- When a pod requires persistent storage, it creates a PVC object specifying the storage requirements, such as storage class, access mode, and storage size.
- Kubernetes attempts to bind the PVC to a suitable PV based on the matching criteria. If a matching PV is found and available, the PVC is bound to the PV. If no suitable PV is available, the PVC remains in a pending state.
- Once the PVC is bound to a PV, the pod can mount the persistent volume and access it as a filesystem or block device. The pod can read from and write to the volume.
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