Dynamically Create a Persistent Volume with Azure Managed Disks in Azure Kubernetes Service

Опубликовано: 22 Май 2026
на канале: MWIT
249
0

Can I Dynamically Resize a Persistent Volume ?
1. To be able to update the volume size, set allowVolumeExpansion: true for the StorageClass
2. To prevent data loss, it's not supported to reduce the size of a PVC
3. If you want to use a disk of size 4 TiB, you must create a StorageClass that defines cachingmode: None, because disk caching isn't supported for disks 4 TiB and larger
4. Before increasing the PVC, terminate the pod using the PVC
5. Edit the PVC to specify the new size
6. Recreate the pod using the PVC