Storage options

DuploCloud Portal supports different configurations to achieve storage options in Azure.

1. Using StorageClass and PVC

Create Storage Class

Navigate to DevOps > Containers > AKS/Native > K8S Storage Tab. Create a Storage Class from the screen below.
sample StorageClass

Create PersistentVolumeClaims(PVC)

Follow these steps to create PVC referring to the StorageClass created in the step above.

Mount PersistentVolumeClaims(PVC) as Volume in Deployment

Follow these steps to mount PVC Volume in the Service Deployment.

2. Using Built-In Storage Classes in AKS

AKS provides a few out-of-the-box StorageClass objects. To mount the built-in storage classes, configure Volumes as below.
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

3. Using Kubernetes Secret with the Azure Storage connection data

Create Storage Account and File Shares

Copy Storage Account Key and FileShare Name from DuploCloud Portal for creating Kubernetes Secrets in the next step.

Create Kubernetes Secret

Navigate to DevOps > Containers > AKS/Native > K8S Secrets Tab. Create Kubernetes Secret Object using Storage Account.
Kubernetes Storage Account Secret
SecretDetails Example
azurestorageaccountkey: >-
azurestorageaccountname: <storage-account-name>

Mount Azure Storage Connection in deployment

While creating a deployment, under Other Pod Config and Other Container Config, provide the configuration below to create and mount the storage volume for your service. In the configuration below, shareNameattribute should be the File Share name which you can get from the Storage Account screen.
Other Pod Config
app: azuretest
- name: azurefileshare
secretName: my-storage-account-key
shareName: fileshare1
readOnly: false
Other Container Config
- name: azurefileshare
mountPath: /myfileshare
Service Deployment Screen with K8s Secret example
Last modified 3mo ago