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/storage/container-storage/install-container-storage-aks.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ Run the following command to create a new AKS cluster and install Azure Containe
106
106
az aks create -n <cluster-name> -g <resource-group> --node-vm-size Standard_L8s_v3 --enable-azure-container-storage ephemeralDisk --generate-ssh-keys
107
107
```
108
108
109
-
This command installs the installer, deploys the `ephemeralDisk`driver, and creates a default storage class. You can install and use both local NVMe and Elastic SAN by providing comma-separated values such as `ephemeralDisk,elasticSan`.
109
+
This command installs the installer, deploys the local NVMe CSI driver, and creates a default storage class called `local-csi`. You can install and use both local NVMe and Elastic SAN by providing comma-separated values such as `ephemeralDisk,elasticSan`.
110
110
111
111
## Install Azure Container Storage on an existing AKS cluster
112
112
@@ -128,7 +128,7 @@ Run the following command to enable Azure Container Storage on an existing AKS c
128
128
az aks update -n <cluster-name> -g <resource-group> --enable-azure-container-storage elasticSan
129
129
```
130
130
131
-
This command installs the installer, deploys the Elastic SAN CSI driver, and creates a default storage class. You can install and use both local NVMe and Elastic SAN by providing comma-separated values such as `ephemeralDisk,elasticSan`.
131
+
This command installs the installer, deploys the Elastic SAN CSI driver, and creates a default storage class called `azuresan`. You can install and use both local NVMe and Elastic SAN by providing comma-separated values such as `ephemeralDisk,elasticSan`.
132
132
133
133
::: zone-end
134
134
@@ -286,6 +286,16 @@ When it completes, the cluster has the Azure Container Storage installer compone
286
286
287
287
## Verify installation
288
288
289
+
### Connect to the AKS cluster
290
+
291
+
Before running the verification commands, make sure your local kubeconfig is set to the target cluster:
292
+
293
+
```azurecli
294
+
az aks get-credentials --resource-group <resource-group-name> --name <cluster-name>
295
+
```
296
+
297
+
If you manage multiple clusters, add `--overwrite-existing` to replace an existing context or use `--context` to set a unique context name.
298
+
289
299
### Verify installer (installer-only mode)
290
300
291
301
After an installer-only enable, verify that the installer is present:
@@ -314,7 +324,7 @@ Example output:
314
324
```output
315
325
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
Copy file name to clipboardExpand all lines: articles/storage/container-storage/use-container-storage-with-local-disk.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,15 @@ For more information, refer to [Best practices for ephemeral NVMe data disks in
69
69
70
70
If you don't already have Azure Container Storage installed, [install it](install-container-storage-aks.md).
71
71
72
-
Azure Container Storage (version 2.x.x) presents local NVMe as a standard Kubernetes storage class. Create the `local` storage class once per cluster and reuse it for both generic ephemeral volumes and persistent volume claims.
72
+
Azure Container Storage (version 2.x.x) presents local NVMe as a standard Kubernetes storage class. Create the `local-csi` storage class once per cluster and reuse it for both generic ephemeral volumes and persistent volume claims.
73
73
74
74
1. Use your favorite text editor to create a YAML manifest file such as `storageclass.yaml`, then paste in the following specification.
75
75
76
76
```yaml
77
77
apiVersion: storage.k8s.io/v1
78
78
kind: StorageClass
79
79
metadata:
80
-
name: local
80
+
name: local-csi
81
81
provisioner: localdisk.csi.acstor.io
82
82
reclaimPolicy: Delete
83
83
volumeBindingMode: WaitForFirstConsumer
@@ -109,9 +109,9 @@ Alternatively, you can create the storage class using Terraform.
Follow these steps to create and attach a generic ephemeral volume using Azure Container Storage. Make sure Azure Container Storage is [installed](install-container-storage-aks.md) and the `local` storage class exists before you continue.
149
+
Follow these steps to create and attach a generic ephemeral volume using Azure Container Storage. Make sure Azure Container Storage is [installed](install-container-storage-aks.md) and the `local-csi` storage class exists before you continue.
150
150
151
151
### Deploy a pod with generic ephemeral volume
152
152
@@ -178,7 +178,7 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
178
178
spec:
179
179
volumeMode: Filesystem
180
180
accessModes: ["ReadWriteOnce"]
181
-
storageClassName: local
181
+
storageClassName: local-csi
182
182
resources:
183
183
requests:
184
184
storage: 10Gi
@@ -211,7 +211,7 @@ While generic ephemeral volumes are recommended for ephemeral storage, Azure Con
211
211
> [!NOTE]
212
212
> Azure Container Storage (version 2.x.x) uses the new annotation `localdisk.csi.acstor.io/accept-ephemeral-storage: "true"` instead of the previous `acstor.azure.com/accept-ephemeral-storage: "true"`.
213
213
214
-
Make sure Azure Container Storage is [installed](install-container-storage-aks.md) and the `local` storage class you created earlier is available before deploying workloads that use it.
214
+
Make sure Azure Container Storage is [installed](install-container-storage-aks.md) and the `local-csi` storage class you created earlier is available before deploying workloads that use it.
If you encounter empty capacity output, confirm that a StorageClass for `localdisk.csi.acstor.io` exists. The `csistoragecapacities.storage.k8s.io` resource is only generated after a StorageClass for `localdisk.csi.acstor.io` exists.
@@ -309,10 +309,10 @@ az aks nodepool scale --cluster-name <cluster-name> --name <nodepool-name> --res
309
309
310
310
To clean up storage resources, you must first delete all PersistentVolumeClaims and/or PersistentVolumes. Deleting the Azure Container Storage StorageClass doesn't automatically remove your existing PersistentVolumes/PersistentVolumeClaims.
311
311
312
-
To delete a storage class named `local`, run the following command:
312
+
To delete a storage class named `local-csi`, run the following command:
0 commit comments