Hello @saminda , In the same document , you can follow below sections:
https://learn.microsoft.com/en-us/azure/aks/azure-csi-files-storage-provision#create-a-kubernetes-secret and example YAML file
I tried those steps to mount an existing azurefileshare by creating sample pod. Mainly you are looking for 3 steps:
Step1:- Get the storage account name & Storage Account key
Step2:- Create the secret
kubectl create secret generic azure-secret --from-literal=azurestorageaccountname=storageaccountname--from-literal=azurestorageaccountkey=storageaccountkey
Step3:-
Use the sample POD YAML file https://learn.microsoft.com/en-us/azure/aks/azure-csi-files-storage-provision#mount-file-share-as-an-inline-volume
use the section:
volumes:
- name: azure
csi:
driver: file.csi.azure.com
readOnly: false
volumeAttributes:
secretName: azure-secret # required
shareName: aksshare # required
mountOptions: "dir_mode=0777,file_mode=0777,cache=strict,actimeo=30,nosharesock" # optional