Configure topology-aware volume provisioning
Learn how to use the Kubernetes Container Storage Interface (CSI) topology feature to control where volumes are provisioned based on availability zones.
Prerequisites
1. Confirm topology labels on Kubernetes nodes
$ kubectl get nodes -Ltopology.kubernetes.io/region -Ltopology.kubernetes.io/zoneNAME STATUS ROLES AGE VERSION REGION ZONE
54.160.132.190 Ready control-plane,etcd,master 46m v1.33.4+k3s1 us-east-1 us-east-1a
54.161.26.50 Ready worker 45m v1.33.4+k3s1 us-east-1 us-east-1b
54.162.121.142 Ready worker 45m v1.33.4+k3s1 us-east-1 us-east-1b
54.167.56.31 Ready control-plane,etcd,master 46m v1.33.4+k3s1 us-east-1 us-east-1a
54.235.34.153 Ready worker 45m v1.33.4+k3s1 us-east-1 us-east-1b
54.89.113.136 Ready control-plane,etcd,master 46m v1.33.4+k3s1 us-east-1 us-east-1a2. Create a StorageClass with WaitForFirstConsumer
3. Create a PersistentVolumeClaim (PVC)
4. Define and create a workload
Last updated