Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.26 KB

install-driver-on-aks.md

File metadata and controls

24 lines (15 loc) · 1.26 KB

Set up CSI driver on AKS cluster

When CSI driver is enabled, built-in in-tree driver(kubernetes.io/azure-disk) should not be used any more since there is potential race condition when both in-tree and CSI drivers are working.

Option#1: Enable CSI driver in AKS cluster creation

Follow AKS doc: Enable CSI drivers for Azure disks and Azure Files on AKS (preview)

Option#2: Enable CSI driver on existing cluster

  • Prerequisites

AKS cluster is created with user asissnged identity by default, make sure cluster identity has Contributor role on node resource group, follow below instruction to set up Contributor role on node resource group image:

  • Install CSI driver

install latest released CSI driver version, following guide here

  • Set up new storage classes
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azuredisk-csi-driver/master/deploy/example/storageclass-azuredisk-csi.yaml

follow guide here to replace built-in storage classes on AKS