Use Azure's built-in Kubernetes StorageClass constructs
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.
Creating K8s PVCs and StorageClass constructs in the DuploCloud Portal
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. 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.
Click Add.
On the Kubernetes Storage page, select the Storage Class option.
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.
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:
In the DuploCloud Portal, navigate to Kubernetes -> Storage.
Click Add. The Add Kubernetes Storage Class page displays.
Create a Storage Class, as in the example below.
For information on using Native Azure StorageClasses, see this section.