Score:0

How are Kubernetes persistent volumes related to AzureDisks in AKS?

cn flag

Say I have One K8s node with Two pods. Each pod claims 5Gi of PV storage. The provisioned AKS VM (node) has a 32GiB SKU SSD AzureDisk data drive.

Will/can both of the 5Gi K8s volumes be located on the same AzureDisk?

If one AzureDisk is required per K8s volume, why would you claim anything but the AzureDisk SKU storage size for a pod (assuming you target only Azure)?

If one AzureDisk can be shared between multiple K8s volumes, then how do you map the paths for two pods to different AzureDisk paths? Or do they get separate partitions?

Can you move a K8s volume to another AzureDisk if you provision a bigger one?

The thing is I have many pods that need PV, but they only need a small amount. Much less than the smallest SKU (4GB SSD, 32GB HDD). I guess one option would be to co-locate all containers in one Pod, but that just doesn't seem right either ...

Andrew Skorkin avatar
tr flag
Can you add more information about your cluster - version, how many nodes it has? From your question it seems you want to use [local volume](https://kubernetes.io/docs/concepts/storage/volumes/#local). Why you don't use [azureDisk volume type](https://kubernetes.io/docs/concepts/storage/volumes/#azuredisk)?
Wytrzymały Wiktor avatar
it flag
Hello @maloo. Any updates?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.