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

sanjeeb 1 Reputation point
2022-05-02T07:37:07.713+00:00

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 Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,261 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,855 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,421 Reputation points
    2022-05-11T05:23:34.023+00:00

    Hi @sanjeeb ,

    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.