Can I mount Shared Azure Disk to the multiple deployments/nodes in Azure Kubernetes?

Remigiusz Parchem 21 Reputation points
2021-04-13T15:28:08.693+00:00

Hi,

I tried mount Azure Shared Disk:
https://learn.microsoft.com/en-us/azure/virtual-machines/disks-shared

to the multiple Azure Kubernetes deployments/pods, but after deploy PODs I got an error:

"Multi-Attach error for volume "azuredisk" Volume is already used by pod(s)..."

So I have a question is it possible to use Shared Disk in Kubernetes? If so how?

Thanks

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,454 questions
{count} votes

Accepted answer
  1. Kasun Rajapakse 431 Reputation points
    2021-04-13T16:09:27.937+00:00

    No, You can't attach azure disks for multiple pods. if you want to use shared storage you can use Azure file share.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.