Using Kubernetes Secrets with Azure Storage connection data

Using K8s Secrets with Azure Storage Accounts

Create Storage Account and File Shares

Refer to steps to configure the new Storage Account and FileShare in Azure.

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

Create Kubernetes Secret

Navigate to Kubernetes -> Secrets. Create a Kubernetes Secret Object using an Azure Storage Account.

For more information, see Kubernetes Configs and Secrets.

SecretDetails example
azurestorageaccountkey: >-
azurestorageaccountname: <storage-account-name>

Mount the Azure Storage Connection in your 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

Last updated


© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates