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
Copy file name to clipboardExpand all lines: articles/aks/azure-blob-csi.md
+11-42Lines changed: 11 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
2
title: Use Container Storage Interface (CSI) driver for Azure Blob storage on Azure Kubernetes Service (AKS)
3
-
description: Learn how to use the Container Storage Interface (CSI) driver for Azure Blob storage (preview) in an Azure Kubernetes Service (AKS) cluster.
3
+
description: Learn how to use the Container Storage Interface (CSI) driver for Azure Blob storage in an Azure Kubernetes Service (AKS) cluster.
# Use Azure Blob storage Container Storage Interface (CSI) driver
12
12
13
-
The Azure Blob storage Container Storage Interface (CSI) driver (preview) is a [CSI specification][csi-specification]-compliant driver used by Azure Kubernetes Service (AKS) to manage the lifecycle of Azure Blob storage. The CSI is a standard for exposing arbitrary block and file storage systems to containerized workloads on Kubernetes.
13
+
The Azure Blob storage Container Storage Interface (CSI) driver is a [CSI specification][csi-specification]-compliant driver used by Azure Kubernetes Service (AKS) to manage the lifecycle of Azure Blob storage. The CSI is a standard for exposing arbitrary block and file storage systems to containerized workloads on Kubernetes.
14
14
15
15
By adopting and using CSI, AKS now can write, deploy, and iterate plug-ins to expose new or improve existing storage systems in Kubernetes. Using CSI drivers in AKS avoids having to touch the core Kubernetes code and wait for its release cycles.
16
16
@@ -20,59 +20,27 @@ Mounting Azure Blob storage as a file system into a container or pod, enables yo
20
20
* Images, documents, and streaming video or audio
21
21
* Disaster recovery data
22
22
23
-
The data on the object storage can be accessed by applications using BlobFuse or Network File System (NFS) 3.0 protocol. Before the introduction of the Azure Blob storage CSI driver (preview), the only option was to manually install an unsupported driver to access Blob storage from your application running on AKS. When the Azure Blob storage CSI driver (preview) is enabled on AKS, there are two built-in storage classes: *azureblob-fuse-premium* and *azureblob-nfs-premium*.
23
+
The data on the object storage can be accessed by applications using BlobFuse or Network File System (NFS) 3.0 protocol. Before the introduction of the Azure Blob storage CSI driver, the only option was to manually install an unsupported driver to access Blob storage from your application running on AKS. When the Azure Blob storage CSI driver is enabled on AKS, there are two built-in storage classes: *azureblob-fuse-premium* and *azureblob-nfs-premium*.
24
24
25
25
To create an AKS cluster with CSI drivers support, see [CSI drivers on AKS][csi-drivers-aks]. To learn more about the differences in access between each of the Azure storage types using the NFS protocol, see [Compare access to Azure Files, Blob Storage, and Azure NetApp Files with NFS][compare-access-with-nfs].
26
26
27
-
## Azure Blob storage CSI driver (preview) features
27
+
## Azure Blob storage CSI driver features
28
28
29
-
Azure Blob storage CSI driver (preview) supports the following features:
29
+
Azure Blob storage CSI driver supports the following features:
30
30
31
31
- BlobFuse and Network File System (NFS) version 3.0 protocol
32
32
33
33
## Before you begin
34
34
35
-
- The Azure CLI version 2.37.0 or later. Run `az --version` to find the version, and run `az upgrade` to upgrade the version. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli].
36
-
37
-
- Install the aks-preview Azure CLI extension version 0.5.85 or later.
38
-
39
-
- If the open-source CSI Blob storage driver is installed on your cluster, uninstall it before enabling the preview driver.
35
+
Review the prerequisites listed in the [CSI storage drivers overview][csi-storage-driver-overview] article to verify the requirements before using this feature.
40
36
41
37
### Uninstall open-source driver
42
38
43
39
Perform the steps in this [link][csi-blob-storage-open-source-driver-uninstall-steps] if you previously installed the [CSI Blob Storage open-source driver][csi-blob-storage-open-source-driver] to access Azure Blob storage from your cluster.
44
40
45
-
## Install the Azure CLI aks-preview extension
46
-
47
-
The following steps are required to install and register the Azure CLI aks-preview extension and driver in your subscription.
48
-
49
-
1. To use the Azure CLI aks-preview extension for enabling the Blob storage CSI driver (preview) on your AKS cluster, run the following command to install it:
50
-
51
-
```azurecli
52
-
az extension add --name aks-preview
53
-
```
54
-
55
-
2. Run the following command to register the CSI driver (preview):
56
-
57
-
```azurecli
58
-
az feature register --name EnableBlobCSIDriver --namespace Microsoft.ContainerService
59
-
```
60
-
61
-
3. To register the provider, run the following command:
62
-
63
-
```azurecli
64
-
az provider register -n Microsoft.ContainerService
65
-
```
66
-
67
-
When newer versions of the extension are released, run the following command to upgrade the extension to the latest release:
68
-
69
-
```azurecli
70
-
az extension update --name aks-preview
71
-
```
72
-
73
41
## Enable CSI driver on a new or existing AKS cluster
74
42
75
-
Using the Azure CLI, you can enable the Blob storage CSI driver (preview) on a new or existing AKS cluster before you configure a persistent volume for use by pods in the cluster.
43
+
Using the Azure CLI, you can enable the Blob storage CSI driver on a new or existing AKS cluster before you configure a persistent volume for use by pods in the cluster.
76
44
77
45
To enable the driver on a new cluster, include the `--enable-blob-driver` parameter with the `az aks create` command as shown in the following example:
78
46
@@ -120,7 +88,7 @@ A storage class is used to define how an Azure Blob storage container is created
120
88
***Standard_GRS**: Standard geo-redundant storage
121
89
***Standard_RAGRS**: Standard read-access geo-redundant storage
122
90
123
-
When you use storage CSI drivers on AKS, there are two additional built-in StorageClasses that use the Azure Blob CSI storage driver (preview).
91
+
When you use storage CSI drivers on AKS, there are two additional built-in StorageClasses that use the Azure Blob CSI storage driver.
124
92
125
93
The reclaim policy on both storage classes ensures that the underlying Azure Blob storage is deleted when the respective PV is deleted. The storage classes also configure the container to be expandable by default, as the `set allowVolumeExpansion` parameter is set to **true**.
126
94
@@ -290,3 +258,4 @@ To have a storage volume persist for your workload, you can use a StatefulSet. T
Copy file name to clipboardExpand all lines: articles/aks/csi-storage-drivers.md
+24-41Lines changed: 24 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Container Storage Interface (CSI) drivers on Azure Kubernetes Service (AK
3
3
description: Learn about and deploy 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: 09/18/2022
6
+
ms.date: 10/18/2022
7
7
author: palma21
8
8
9
9
---
@@ -28,34 +28,39 @@ The CSI storage driver support on AKS allows you to natively use:
28
28
29
29
## Prerequisites
30
30
31
-
You need the Azure CLI version 2.40 installed and configured. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli].
31
+
- You need the Azure CLI version 2.40 installed and configured. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli].
32
+
- If the open-source CSI Blob storage driver is installed on your cluster, uninstall it before enabling the Azure Blob storage driver.
32
33
33
-
## Disable CSI storage drivers on a new cluster
34
+
## Disable CSI storage drivers on a new or existing cluster
34
35
35
-
`--disable-disk-driver` allows you to disable the [Azure Disks CSI driver][azure-disk-csi]. `--disable-file-driver` allows you to disable the [Azure Files CSI driver][azure-files-csi]. `--disable-snapshot-controller` allows you to disable the [snapshot controller][snapshot-controller ].
36
+
To disable CSI storage drivers on a new cluster, use one of the following depending on the storage system:
36
37
37
-
To disable CSI storage drivers on a new cluster, use `--disable-disk-driver`, `--disable-file-driver`, and `--disable-snapshot-controller`.
38
+
*`--disable-disk-driver` allows you to disable the [Azure Disks CSI driver][azure-disk-csi].
39
+
*`--disable-file-driver` allows you to disable the [Azure Files CSI driver][azure-files-csi].
40
+
*`--disable-blob-driver` allows you to disable the [Azure Blob storage CSI driver][azure-blob-csi].
41
+
*`--disable-snapshot-controller` allows you to disable the [snapshot controller][snapshot-controller].
38
42
39
43
```azurecli
40
-
az aks create -n myAKSCluster -g myResourceGroup --disable-disk-driver --disable-file-driver --disable-snapshot-controller
44
+
az aks create -n myAKSCluster -g myResourceGroup --disable-disk-driver --disable-file-driver --disable-blob-driver --disable-snapshot-controller
41
45
```
42
46
43
-
## Disable CSI storage drivers on an existing cluster
44
-
45
-
To disable CSI storage drivers on an existing cluster, use `--disable-disk-driver`, `--disable-file-driver`, and `--disable-snapshot-controller`.
47
+
To disable CSI storage drivers on an existing cluster, use one of the parameters listed earlier depending on the storage system:
46
48
47
49
```azurecli
48
-
az aks update -n myAKSCluster -g myResourceGroup --disable-disk-driver --disable-file-driver --disable-snapshot-controller
50
+
az aks update -n myAKSCluster -g myResourceGroup --disable-disk-driver --disable-file-driver --disable-blob-driver --disable-snapshot-controller
49
51
```
50
52
51
53
## Enable CSI storage drivers on an existing cluster
52
54
53
-
`--enable-disk-driver` allows you enable the [Azure Disks CSI driver][azure-disk-csi]. `--enable-file-driver` allows you to enable the [Azure Files CSI driver][azure-files-csi]. `--enable-snapshot-controller` allows you to enable the [snapshot controller][snapshot-controller].
55
+
To enable CSI storage drivers on a new cluster, use one of the following depending on the storage system:
54
56
55
-
To enable CSI storage drivers on an existing cluster with CSI storage drivers disabled, use `--enable-disk-driver`, `--enable-file-driver`, and `--enable-snapshot-controller`.
57
+
*`--enable-disk-driver` allows you enable the [Azure Disks CSI driver][azure-disk-csi].
58
+
*`--enable-file-driver` allows you to enable the [Azure Files CSI driver][azure-files-csi].
59
+
*`--enable-blob-driver` allows you to enable the [Azure Blob storage CSI driver][azure-blob-csi].
60
+
*`--enable-snapshot-controller` allows you to enable the [snapshot controller][snapshot-controller].
56
61
57
62
```azurecli
58
-
az aks update -n myAKSCluster -g myResourceGroup --enable-disk-driver --enable-file-driver --enable-snapshot-controller
63
+
az aks update -n myAKSCluster -g myResourceGroup --enable-disk-driver --enable-file-driver --enable-blob-driver --enable-snapshot-controller
59
64
```
60
65
61
66
## Migrate custom in-tree storage classes to CSI
@@ -115,43 +120,21 @@ If you have in-tree Azure File persistent volumes, get `secretName`, `shareName`
115
120
116
121
## Next steps
117
122
118
-
- To use the CSI driver for Azure Disks, see [Use Azure Disks with CSI drivers](azure-disk-csi.md).
119
-
- To use the CSI driver for Azure Files, see [Use Azure Files with CSI drivers](azure-files-csi.md).
120
-
- To use the CSI driver for Azure Blob storage, see [Use Azure Blob storage with CSI drivers](azure-blob-csi.md)
123
+
- To use the CSI driver for Azure Disks, see [Use Azure Disks with CSI drivers][azure-disk-csi].
124
+
- To use the CSI driver for Azure Files, see [Use Azure Files with CSI drivers][azure-files-csi].
125
+
- To use the CSI driver for Azure Blob storage, see [Use Azure Blob storage with CSI drivers][azure-blob-csi]
121
126
- For more about storage best practices, see [Best practices for storage and backups in Azure Kubernetes Service][operator-best-practices-storage].
122
127
- For more information on CSI migration, see [Kubernetes In-Tree to CSI Volume Migration][csi-migration-community].
0 commit comments