hello everyone
i have some problem when i want to create new partition on azure aks nodepool
i already attach an existion disk



ref: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal
hello everyone
i have some problem when i want to create new partition on azure aks nodepool
i already attach an existion disk



ref: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal
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.
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 ?
Hello @ChaiyaponSingsiri-6421 ,
Thanks for reaching out to Microsoft Q & A.
Can you try parted with flag -l


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.
10 people are following this question.