question

ChaiyaponSingsiri-6421 avatar image
0 Votes"
ChaiyaponSingsiri-6421 asked ChaiyaponSingsiri-6421 edited

azure aks nodepool can not create partition

hello everyone

i have some problem when i want to create new partition on azure aks nodepool

i already attach an existion disk

119642-image.png


119500-image.png


119626-image.png




ref: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal

azure-kubernetes-service
image.png (63.8 KiB)
image.png (16.6 KiB)
image.png (36.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered ChaiyaponSingsiri-6421 edited

You should not be manually adding data disks to AKS nodes, this will break with the nodes get updated or recreated.

What are you wanting the storage for? If this is for pods, then you should be using PVC's attached to Azure Disks, not attaching the disk manually.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you Sam , it does not normal pods because create by Custom resource definitions (CRDs) to extend Kubernetes resources. i think can not create PVC's attached to Aazure disk


solution for me :

i have existing azure disk . i try to attached to node for create local storage class "https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/"


Note:

could you please explain why i should not attaching the disk manually. i does not like K8s on premise ?



0 Votes 0 ·
shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered

Hello @ChaiyaponSingsiri-6421 ,
Thanks for reaching out to Microsoft Q & A.
Can you try parted with flag -l

120001-image.png


120002-image.png



One more thing which I observed was , you were trying to attach the data disk directly to VMSS instance ?
I think, that's the not the best practice. If you directly attach a data disk to VMSS instance - after reboot the disk gets wiped off. Instead add the data disk at VMSS level (Not instance level)

Kindly let us know if that helps.

Please make sure to UpVote and accept the answer where ever it helps out in the resolution.


image.png (10.7 KiB)
image.png (26.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.