You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to enable the Container Storage Interface (CSI) drivers for Azure disks and Azure Files in an Azure Kubernetes Service (AKS) cluster.
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 08/31/2021
6
+
ms.date: 10/15/2021
7
7
author: palma21
8
8
9
9
---
@@ -29,7 +29,7 @@ The CSI storage driver support on AKS allows you to natively use:
29
29
- The minimum Kubernetes minor version that supports CSI drivers is v1.17.
30
30
- The default storage class will be the `managed-csi` storage class.
31
31
32
-
## Create a new cluster that can use CSI storage drivers
32
+
## Install CSI storage drivers on a new cluster with version < 1.21
33
33
34
34
Create a new cluster that can use CSI storage drivers for Azure disks and Azure Files by using the following CLI commands. Use the `--aks-custom-headers` flag to set the `EnableAzureDiskFileCSIDriver` feature.
35
35
@@ -47,7 +47,7 @@ Create the AKS cluster with support for CSI storage drivers:
47
47
az aks create -g MyResourceGroup -n MyManagedCluster --network-plugin azure --aks-custom-headers EnableAzureDiskFileCSIDriver=true
48
48
```
49
49
50
-
If you want to create clusters in tree storage drivers instead of CSI storage drivers, you can do so by omitting the custom `--aks-custom-headers` parameter.
50
+
If you want to create clusters in tree storage drivers instead of CSI storage drivers, you can do so by omitting the custom `--aks-custom-headers` parameter. Starting in Kubernetes version 1.21, Kubernetes will use CSI drivers only and by default.
51
51
52
52
53
53
Check how many Azure disk-based volumes you can attach to this node by running:
## Install CSI storage drivers on an existing cluster with version < 1.21
66
+
-[Set up Azure Disk CSI driver on AKS cluster](https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/docs/install-driver-on-aks.md)
67
+
-[Set up Azure File CSI driver on AKS cluster](https://github.com/kubernetes-sigs/azurefile-csi-driver/blob/master/docs/install-driver-on-aks.md)
68
+
65
69
## Migrating custom in-tree storage classes to CSI
66
70
If you have created custom storage classes based on the in-tree storage drivers, these will need to be migrated when you have upgraded your cluster to 1.21.x.
0 commit comments