Aks || azure file share multiple mount point on single file share

Ankit Rathod 371 Reputation points
2021-08-31T18:19:48.99+00:00

Dear team,
I
want to create Multiple Mount Points(from single file share name) on single pod, and if I create multiple mount points with adding volume Mount point in my pod yaml, my data is shared between both the mount points(when i checked from inside the pods).

which I dont want, please suggest strategy for the same ?

Also my Storage Account is in RAGRS, and when I do a failover from one region to another region and once the failover is completed and now the Primary Region for the Stroage Account is Changed, my pods are mounted to Storage Account File Share, but pod lost the files in the mount point. , i had to recreate the Pod in order to get back my files in the mount point ., please suggest on how to over come this issue ??

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,170 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,877 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,141 Reputation points Microsoft Employee
    2021-09-02T21:57:49.753+00:00

    Hello @Ankit Rathod ,
    On your first query , I am trying to understand your use case scenario .
    When 2 different mount points are referring to the same file share - they will definitely see the same contents . I am thinking the only option is to have a multiple file share to those mount points.
    If you have a specific use case scenario - kindly let us know for better understanding.

    For the second query -
    I was able to repro the issue locally , it seems we need to recreate the POD after storage failover.

    Can you try mounting the file share using persistent volume:

    https://learn.microsoft.com/en-us/azure/aks/azure-files-volume

    Regards,
    Shiva.


0 additional answers

Sort by: Most helpful