arrow-left

All pages
gitbookPowered by GitBook
1 of 2

Loading...

Loading...

Native Azure Storage Classes

Use Azure's built-in Kubernetes StorageClass constructs

hashtag
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 Servicearrow-up-right.

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

Kubernetes StorageClass and PVC

Creating K8s PVCs and StorageClass constructs in the DuploCloud Portal

hashtag
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.

hashtag
Creating a Storage Class

  1. DuploCloud Portal, navigate to Kubernetes -> Storage.

  2. Click Add. The Add Kubernetes Storage Class page displays.

  3. Define the Storage Class Name, Provisioner, Reclaim Policy, and Volume Binding Mode. Select other options, such as whether to Allow Volume Expansion

circle-info

For information on using Native Azure StorageClasses, .

hashtag
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.

  1. Define the PVC Name, Storage Class Name, Volume Name, Volume Mode, and other details such as volume Access Modes.

  2. Optionally, to group resources in the Kubernetes Apps dashboard, add an app name in the Labels field, in the following format:

  3. Click Add.

circle-exclamation

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 .

  • see this section
    Add Kubernetes Storage Class page for EKS in AWS
    Add Kubernetes Storage Class page for AKS in Azure
    The Persistent Volume Claims option on the Kubernetes Storage page
    The Add Kubernetes Persistent Volume Claim page
    Key: app.duplocloud.net/app-name
    Value: <app name>
    these steps
    Managing Volume Expansions in StatefulSets on GKEarrow-up-right
    Increasing Disk Size in a StatefulSetarrow-up-right
    Expanding Persistent Volume Claims in Kubernetesarrow-up-right
    Expanding Kubernetes Persistent Volumes on EKSarrow-up-right