Create and use azureFileShare secretName

This document (000020925) is provided subject to the disclaimer at the end of this document.

Resolution

AzureFileShare satisfies the Persistent Volume Claim requirements.  To protect the AzureFile credentials, controller.azureFileShare.secretName references a secret.  This article demonstrates how to create the secret and links to Microsoft documentation describing the process.

Three helm parameters apply to using AzureFile.

controller.azureFileShare.enabledIf true, enable the usage of an existing or statically provisioned Azure File Sharefalse
controller.azureFileShare.secretNameThe name of the secret containing the Azure file share storage account name and keynil
controller.azureFileShare.shareNameThe name of the Azure file share to usenil
 

The above Helm parameters become the following lines in the controller deployment YAML under the volumes section.

azureFile:
secretName: azure-secret
shareName: ShareName

The secretName parameter origin is not apparent but is created from Azure Storage Account Name and Storage Key.  Below is an example kubectl command (Variable replacement required.)

kubectl create secret generic azure-secret --from-literal=azurestorageaccountname=$AKS_PERS_STORAGE_ACCOUNT_NAME --from-literal=azurestorageaccountkey=$STORAGE_KEY -n neuvector

More information on managing AzureFileShare and creating the secret can be found at https://docs.microsoft.com/en-us/azure/aks/azure-files-volume#create-a-kubernetes-secret.
 
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020925
  • Creation Date: 17-Jan-2023
  • Modified Date:18-Jan-2023
    • SUSE NeuVector

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center