0
votes

REF: https://docs.microsoft.com/en-us/azure/aks/azure-disks-dynamic-pv

Hello All,

When we create a Disk Dynamically in AKS, we get to see disk in Azure portal (under Disks) with name kubernetes-dynamic-pvc-XXXXX.... Can give a custom name like (Mongo-Disk or ELK-Disk).?

Thanks in advance.

1

1 Answers

0
votes

Unfortunately, there isn't any way to set the Disk Image Name from the StorageClass when using Dynamic PVC.

If you absolutely need to have a Disk with a precise name, I would recommend to use a static Disk Image : https://docs.microsoft.com/en-us/azure/aks/azure-disk-volume

This way, you will be able to create your disk in advance and give it the name that you are interested in.