Share via

Max Data Disks attached to a worker node in Azure

Soundarya Ayyappan 61 Reputation points
2021-12-20T11:00:24.917+00:00

I use AKS to deploy the application services. I have used the VM size of Standard_D4a_v4 with 4vCPU and 16Gi Memory configuration for the worker nodes.

Max data disks specified for the above mentioned configuration is 8. I need to clarify that, if only 8 pvcs of azure disks provisioner can be mounted to the worker node or is that possible to mount more pvcs (>8) with azure file provisioner?

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.

Azure Disk Storage
Azure Disk Storage

A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.

0 comments No comments

Answer accepted by question author

  1. shiva patpi 13,376 Reputation points Microsoft Employee Moderator
    2021-12-21T21:44:44.64+00:00

    Hello @Soundarya Ayyappan , To answer your question "YES". Here is the brief explanation:

    For Azure Disks :-

    Azure Disks are more specifically attached to the corresponding nodes. When you create a PVC followed by a POD then a data disk will be attached to the corresponding worker node on which that POD was deployed. Since for D4a_v4 SKU VMs we can attach only 8 data disks hence you can create only 8 PVCs.

    Please Note: - Once you create 9th PVC - if the cluster-autoscaler is enabled it will add a new node and new data disk will be added to the new node once the POD gets created.

    Something like below:-

    Events: Type Reason Age From Message


    Normal TriggeredScaleUp 36s cluster-autoscaler pod triggered scale-up: [{aks-agentpool-40625907-vmss 2->3 (max: 5)}] Warning FailedScheduling 15s (x3 over 39s) default-scheduler 0/2 nodes are available: 2 node(s) exceed max volume count.

    For Azure files: When you create a PVC using Azure files , when a corresponding POD gets created a storage account will be created dynamically (if you are not using the existing storage account) and then file share will be mounted in that storage account. You can create any number of PVCs using the azure files share and there is no limit - it depends on the storage account provider capacity

    To summarize, basically the thing which we need to understand is:

    1. Azure Disks is dependent on the corresponding VM SKU ( i.e. worker node VM Size)
    2. Azure Files is independent of the corresponding VM SKU (it depends on the external storage account)

    Hope that clarifies your query. Kindly let us know if you have additional questions.

    Please make sure to "Upvote & Accept the answer" so that it will be helpful to the community out there who are looking for similar ones.

    Regards, Shiva.

    Was this answer helpful?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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