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 storage
account toAzure Kubernetes
usingaccess key
.yaml
file to use the storage secrets.storage_secret.yaml
ACR
. I usedNGINX
as an example.This
YAML
file to use an access key to mount anAzure File share
onAKS
.Save the above code in
.yaml extension
and then run the following command.The
Storage Fileshare
was mounted toAKS
after executing thekubectl apply
command.