Topology is a beta feature since Kubernetes v1.14, refer to CSI Topology Feature for more details.
In below example, there are two nodes with topology label: topology.disk.csi.azure.com/zone=eastus2-1
$ kubectl get no --show-labels | grep topo
k8s-agentpool-83483713-vmss000000 Ready agent 62d v1.16.2 ...topology.disk.csi.azure.com/zone=eastus2-1
k8s-agentpool-83483713-vmss000001 Ready agent 62d v1.16.2 ...topology.disk.csi.azure.com/zone=eastus2-1
if node is in non-zone, topology label
topology.disk.csi.azure.com/zone
would be empty
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: managed-csi
provisioner: disk.csi.azure.com
parameters:
skuname: StandardSSD_LRS # available values: Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer # make sure `volumeBindingMode` is set as `WaitForFirstConsumer`
Continue from step Create an azuredisk CSI PVC
, refer to Basic usage