question

sanjeeb-8790 avatar image
0 Votes"
sanjeeb-8790 asked MughundhanRaveendran-MSFT commented

How to mount azure fileshare to kubernetes for use with azure functions deployed using KEDA?

I used to mount azure file share on azure function app so that the functions can access the files inside the fileshare. I want to use azure functions with kubernetes (AKS) using keda. How can I mount the azure fileshare when deploying the function app to kubernetes with keda?

azure-functionsazure-kubernetes-service
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@sanjeeb-8790 , Why do you want to mount a fileshare? For deployment purpose?

0 Votes 0 ·
sanjeeb-8790 avatar image sanjeeb-8790 MughundhanRaveendran-MSFT ·

Yes. The functions use data from the fileshare to respond.

0 Votes 0 ·

1 Answer

MughundhanRaveendran-MSFT avatar image
0 Votes"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

Hi @sanjeeb-8790 ,

Thanks for reaching out to Q&A.

You can create and deploy the function app as a part of docker image and deploy to Azure Kubernetes with Keda. You can refer the below article should you need any help

https://microsoft.github.io/AzureTipsAndTricks/blog/tip278.html?msclkid=c096c9f0d0e711ec9a4e1f9b3c5c5b7d

For mounting the Azure Fileshare to AKS, you can directly mount AKS Pod using this YAML file, it will be mounted as inline volume in the AKS pod.

I hope this helps!

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@sanjeeb-8790 ,

Following up to see if the above answer helps. Do let me know if you have any queries.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·