Skip to content

Latest commit

 

History

History
 
 

topology

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Topology(Availability Zone)

Topology is a beta feature since Kubernetes v1.14, refer to CSI Topology Feature for more details.

Check node topology after driver installation

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

Use following storage class with topology support

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`

Follow azure disk dynamic provisioning

Continue from step Create an azuredisk CSI PVC, refer to Basic usage

Links