Creating K8s PVCs and StorageClass constructs in the DuploCloud Portal
Configuring Kubernetes Storage
You can configure the Storage Class and Persistent Volume Claims (PVCs) from the DuploCloud Portal.
In the DuploCloud Portal, navigate to Kubernetes -> Storage. The Kubernetes Storage page displays.
You define your Kubernetes Persistent Volume Claims and Storage Classes from this page.
Creating a Storage Class
DuploCloud Portal, navigate to Kubernetes -> Storage.
Click Add. The Add Kubernetes Storage Class page displays.
Define the Storage Class Name, Provisioner, Reclaim Policy, and Volume Binding Mode. Select other options, such as whether to Allow Volume Expansion
For information on using Native Azure StorageClasses, .
Creating Kubernetes Persistent Volume Claim
DuploCloud Portal, navigate to Kubernetes -> Storage.
The Persistent Volume Claims option is selected by default.
Click Add. The Add Kubernetes Persistent Volume Claim page displays.
Define the PVC Name, Storage Class Name, Volume Name, Volume Mode, and other details such as volume Access Modes.
Optionally, to group resources in the Kubernetes Apps dashboard, add an app name in the Labels field, in the following format:
Click Add.
If you are using K8s and PVCs to autoscale your storage groups and you encounter out-of-space conditions, simply adding new storage volumes may not resolve the issue. Instead, you must increase the size of the existing PVCs to accommodate your storage needs.
For guidance on how to perform volume expansion in Kubernetes, refer to the following resources:
.
Create a Storage Class, as in the example below.
For EKS, you can create EFS following these steps.
Use Azure's built-in Kubernetes StorageClass constructs
Mounting Native Azure Built-In Storage Classes
AKS provides a few out-of-the-box StorageClass objects. To mount the built-in storage classes, configure the Volumes field as shown below when adding a Service.
Service Deployment Page
Volumes field
- AccessMode: ReadWriteMany
Name: data
Path: /attachedvolume
StorageClassName: azurefile #if empty default storage class will be used which is disk
Size: 20Gi