Azure Disk is 256 GB but AKS is showing 8GB inside the Pod

Tahmid Eshayat 286 Reputation points
2021-02-23T07:49:03.343+00:00

Hey there,

I think this is more like the K8S question together with AKS and Azure Disk.

I have an azure disk which is attached to the main VM of K8S.
In the screenshot, it is visible that the disk is 256 GB.

71025-image.png

I have referenced the Volume like this in k8s,

70979-image.png

But inside the POD, I can see the disk limit is only 8GB

71026-image.png

Not sure, How to fix this issue. Couldn't find any possible way.

Help would be appreciated

Thanks

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,869 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
575 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,141 Reputation points Microsoft Employee
    2021-02-24T22:37:11.71+00:00

    Hello @Tahmid Eshayat ,
    Thanks for your query !
    To repro your scenario I tried creating both static and dynamic volumes for Azure disks but I can see the size accordingly in the mounted container . Based upon the screen shot , I hope in your case the disk was created dynamically and you did use "PersistentVolumeClaim"

    Followed the below article for static:

    Even tested it for StandardSSD.

    All looks fine from my end

    Couple of things to try:

    If you are still facing the same issue , kindly provide all the detailed steps which you followed along with sample YAML , PVC , PV resources.

    If the above troubleshooting steps helps out in resolving the issue , kindly "Accept the Answer".