I am using pip package azure-storage-file-share in my application to get the list of files, connection is done using access_key for storage.
It is able to retrieve file information when run locally.
When deployed in azure kubernetes service as a docker container.
The application is not able to connect to the storage service.
I understand using a managed identity is more better way. but Should it connect even using access_key.
Thanks
You can follow these steps to connect an
Azure storageaccount toAzure Kubernetesusingaccess key.yamlfile to use the storage secrets.storage_secret.yaml
ACR. I usedNGINXas an example.This
YAMLfile to use an access key to mount anAzure File shareonAKS.Save the above code in
.yaml extensionand then run the following command.The
Storage Filesharewas mounted toAKSafter executing thekubectl applycommand.