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-csi-disk-storage-provision.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,6 @@ For more information on Kubernetes volumes, see [Storage options for application
27
27
28
28
## Before you begin
29
29
30
-
* You need an Azure [storage account][azure-storage-account].
31
30
* Make sure you have Azure CLI version 2.0.59 or later 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
31
* The Azure Disk CSI driver has a per-node volume limit. The volume count changes based on the size of the node/node pool. Run the [kubectl get][kubectl-get] command to determine the number of volumes that can be allocated per node:
33
32
@@ -76,7 +75,7 @@ Each AKS cluster includes four precreated storage classes, two of them configure
76
75
2. The *managed-csi-premium* storage class provisions a premium Azure Disk.
77
76
* SSD-based high-performance, low-latency disks back Premium disks. They're ideal for VMs running production workloads. When you use the Azure Disk CSI driver on AKS, you can also use the `managed-csi` storage class, which is backed by Standard SSD locally redundant storage (LRS).
78
77
79
-
It's not supported to reduce the size of a PVC (to prevent data loss). You can edit an existing storage class using the `kubectl edit sc` command, or you can create your own custom storage class. For example, if you want to use a disk of size 4 TiB, you must create a storage class that defines `cachingmode: None` because [disk caching isn't supported fordisks 4 TiB and larger][disk-host-cache-setting]. For more information about storage classes and creating your own storage class, see [Storage options for applicationsin AKS][storage-class-concepts].
78
+
Reducing the size of a PVC is not supported due to the risk of data loss. You can edit an existing storage class using the `kubectl edit sc` command, or you can create your own custom storage class. For example, if you want to use a disk of size 4 TiB, you must create a storage class that defines `cachingmode: None` because [disk caching isn't supported for disks 4 TiB and larger][disk-host-cache-setting]. For more information about storage classes and creating your own storage class, see [Storage options for applications in AKS][storage-class-concepts].
80
79
81
80
You can see the precreated storage classes using the [`kubectl get sc`][kubectl-get] command. The following example shows the precreated storage classes available within an AKS cluster:
82
81
@@ -229,11 +228,11 @@ For more information on using Azure tags, see [Use Azure tags in Azure Kubernete
229
228
230
229
## Statically provision a volume
231
230
232
-
This section provides guidance for cluster administrators who want to create one or more persistent volumes that include details of Azure Disks storage for use by a workload.
231
+
This section provides guidance for cluster administrators who want to create one or more persistent volumes that include details of Azure Disks for use by a workload.
233
232
234
-
### Static provisioning parameters for PersistentVolume
233
+
### Static provisioning parameters for a persistent volume
235
234
236
-
The following table includes parameters you can use to define a PersistentVolume.
235
+
The following table includes parameters you can use to define a persistent volume.
237
236
238
237
|Name | Meaning | Available Value | Mandatory | Default value|
239
238
|--- | --- | --- | --- | ---|
@@ -250,12 +249,15 @@ When you create an Azure disk for use with AKS, you can create the disk resource
250
249
251
250
```azurecli-interactive
252
251
az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv
252
+
```
253
253
254
-
# Output
254
+
The output of the command resembles the following example:
255
+
256
+
```output
255
257
MC_myResourceGroup_myAKSCluster_eastus
256
258
```
257
259
258
-
2. Create a disk using the [`az disk create`][az-disk-create] command. Specify the node resource group name and a name for the disk resource, such as *myAKSDisk*. The following example creates a *20*GiB disk, and outputs the ID of the disk after it's created. If you need to create a disk for use with Windows Server containers, add the `--os-type windows` parameter to correctly format the disk.
260
+
1. Create a disk using the [`az disk create`][az-disk-create] command. Specify the node resource group name and a name for the disk resource, such as *myAKSDisk*. The following example creates a *20*GiB disk, and outputs the ID of the disk after it's created. If you need to create a disk for use with Windows Server containers, add the `--os-type windows` parameter to correctly format the disk.
0 commit comments