- Prerequisites
AKS cluster is created with user assigned identity(with naming rule AKS Cluster Name-agentpool
) on agent node pool by default, make sure that identity has Contributor
role on node resource group, follow below instruction to set up Contributor
permission on node resource group
:
- 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/azurefile-csi-driver/master/deploy/example/storageclass-azurefile-csi.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/storageclass-azurefile-nfs.yaml
follow guide here to replace built-in storage classes on AKS