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
> This Quickstart will work for most use cases. The only exception is if you plan to use Azure Elastic SAN Preview as backing storage for your storage pool and you don't have owner-level access to the Azure subscription. If both these statements apply to you, use the [manual installation steps](install-container-storage-aks.md) instead.
21
+
> This Quickstart will work for most use cases. An exception is if you plan to use Azure Elastic SAN Preview as backing storage for your storage pool and you don't have owner-level access to the Azure subscription. If both these statements apply to you, use the [manual installation steps](install-container-storage-aks.md) instead. Alternatively, you can complete this Quickstart with the understanding that a storage pool won't be automatically created, and then [create an Elastic SAN storage pool manually](use-container-storage-with-elastic-san.md).
- If you're using Azure Cloud Shell, you might be prompted to mount storage. Select the Azure subscription where you want to create the storage account and select **Create**.
30
30
31
-
## Install the latest AKS preview extension
31
+
## Install the required extensions
32
32
33
33
Upgrade to the latest version of the `aks-preview` cli extension by running the following command.
34
34
35
35
```azurecli-interactive
36
36
az extension add --upgrade --name aks-preview
37
37
```
38
38
39
+
Add or upgrade to the latest version of k8s-extension by running the following command.
40
+
41
+
```azurecli-interactive
42
+
az extension add --upgrade --name k8s-extension
43
+
```
44
+
39
45
## Set subscription context
40
46
41
47
Set your Azure subscription context using the `az account set` command. You can view the subscription IDs for all the subscriptions you have access to by running the `az account list --output table` command. Remember to replace `<subscription-id>` with your subscription ID.
@@ -127,6 +133,8 @@ The deployment will take 10-15 minutes to complete.
127
133
128
134
If you already have an AKS cluster that meets the [VM requirements](#choose-a-vm-type-for-your-cluster), run the following command to install Azure Container Storage on the cluster and create a storage pool. Replace `<cluster-name>` and `<resource-group-name>` with your own values. Replace `<storage-pool-type>` with `azureDisk`, `ephemeraldisk`, or `elasticSan`.
129
135
136
+
Running this command will enable Azure Container Storage on a node pool named `nodepool1`, which is the default node pool name. If you want to install it on other node pools, see [Install Azure Container Storage on specific node pools](#install-azure-container-storage-on-specific-node-pools).
137
+
130
138
> [!IMPORTANT]
131
139
> **If you created your AKS cluster using the Azure portal:** The cluster will likely have a user node pool and a system/agent node pool. However, if your cluster consists of only a system node pool, which is the case with test/dev clusters created with the Azure portal, you'll need to first [add a new user node pool](../../aks/create-node-pools.md#add-a-node-pool) and then label it. This is because when you create an AKS cluster using the Azure portal, a taint `CriticalAddOnsOnly` is added to the system/agent nodepool, which blocks installation of Azure Container Storage on the system node pool. This taint isn't added when an AKS cluster is created using Azure CLI.
132
140
@@ -135,3 +143,19 @@ az aks update -n <cluster-name> -g <resource-group-name> --enable-azure-contain
135
143
```
136
144
137
145
The deployment will take 10-15 minutes to complete.
146
+
147
+
### Install Azure Container Storage on specific node pools
148
+
149
+
If you want to install Azure Container Storage on specific node pools, follow these instructions. The node pools must contain at least three Linux VMs each.
150
+
151
+
1. Run the following command to view the list of available node pools. Replace `<resource-group-name>` and `<cluster-name>` with your own values.
152
+
153
+
```azurecli-interactive
154
+
az aks nodepool list --resource-group <resource-group-name> --cluster-name <cluster-name>
155
+
```
156
+
157
+
1. Run the following command to install Azure Container Storage on specific node pools. Replace `<cluster-name>` and `<resource-group-name>` with your own values. Replace `<storage-pool-type>` with `azureDisk`, `ephemeraldisk`, or `elasticSan`.
158
+
159
+
```azurecli-interactive
160
+
az aks update -n <cluster-name> -g <resource-group-name> --enable-azure-container-storage <storage-pool-type> --azure-container-storage-nodepools <comma separated values of nodepool names>
0 commit comments