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/use-ultra-disks.md
+23-49Lines changed: 23 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,63 +2,53 @@
2
2
title: Enable Ultra Disk support on Azure Kubernetes Service (AKS)
3
3
description: Learn how to enable and configure Ultra Disks in an Azure Kubernetes Service (AKS) cluster
4
4
ms.topic: article
5
-
ms.date: 1/9/2022
5
+
ms.date: 3/23/2023
6
6
7
7
---
8
8
9
9
# Use Azure ultra disks on Azure Kubernetes Service
10
10
11
-
[Azure ultra disks](../virtual-machines/disks-enable-ultra-ssd.md) offer high throughput, high IOPS, and consistent low latency disk storage for your stateful applications. One major benefit of ultra disks is the ability to dynamically change the performance of the SSD along with your workloads without the need to restart your agent nodes. Ultra disks are suited for data-intensive workloads.
11
+
[Azure ultra disks][ultra-disk-overview] offer high throughput, high IOPS, and consistent low latency disk storage for your stateful applications. One major benefit of ultra disks is the ability to dynamically change the performance of the SSD along with your workloads without the need to restart your agent nodes. Ultra disks are suited for data-intensive workloads.
12
12
13
13
## Before you begin
14
14
15
-
This feature can only be set at cluster creation or node pool creation time.
16
-
17
-
> [!IMPORTANT]
18
-
> Azure ultra disks require nodepools deployed in availability zones and regions that support these disks as well as only specific VM series. See the [**Ultra disks GA scope and limitations**](../virtual-machines/disks-enable-ultra-ssd.md#ga-scope-and-limitations).
15
+
This feature can only be set at cluster creation or when creating a node pool.
19
16
20
17
### Limitations
21
18
22
-
- Ultra disks can't be used with some features and functionality, such as availability sets or Azure Disk Encryption. Review [**Ultra disks GA scope and limitations**](../virtual-machines/disks-enable-ultra-ssd.md#ga-scope-and-limitations) before proceeding.
19
+
- Azure ultra disks require node pools deployed in availability zones and regions that support these disks, and are only supported by specific VM series. Review the corresponding table under the [Ultra disk limitations][ultra-disk-limitations] section for more information.
20
+
- Ultra disks can't be used with some features and functionality, such as availability sets or Azure Disk Encryption. Review the [Ultra disk limitations][ultra-disk-limitations] for the latest information.
23
21
- The supported size range for ultra disks is between 100 and 1500.
24
22
25
23
## Create a new cluster that can use ultra disks
26
24
27
-
Create an AKS cluster that is able to leverage Azure ultra Disks by using the following CLI commands. Use the `--enable-ultra-ssd` flag to set the `EnableUltraSSD` feature.
28
-
29
-
Create an Azure resource group:
30
-
31
-
```azurecli-interactive
32
-
az group create --name myResourceGroup --location westus2
33
-
```
34
-
35
-
Create an AKS-managed Azure AD cluster with support for ultra disks.
25
+
Create an AKS cluster that is able to leverage Azure ultra Disks by using the following CLI commands. Use the `--enable-ultra-ssd` parameter to set the `EnableUltraSSD` feature.
36
26
37
27
```azurecli-interactive
38
28
az aks create -g MyResourceGroup -n myAKSCluster -l westus2 --node-vm-size Standard_D2s_v3 --zones 1 2 --node-count 2 --enable-ultra-ssd
39
29
```
40
30
41
-
If you want to create clusters without ultra disk support, you can do so by omitting the `--enable-ultra-ssd` parameter.
31
+
If you want to create a cluster without ultra disk support, you can do so by omitting the `--enable-ultra-ssd` parameter.
42
32
43
33
## Enable ultra disks on an existing cluster
44
34
45
-
You can enable ultra disks on existing clusters by adding a new node pool to your cluster that support ultra disks. Configure a new node pool to use ultra disks by using the `--enable-ultra-ssd`flag.
35
+
You can enable ultra disks on an existing cluster by adding a new node pool to your cluster that support ultra disks. Configure a new node pool to use ultra disks by using the `--enable-ultra-ssd`parameter.
46
36
47
37
```azurecli
48
38
az aks nodepool add --name ultradisk --cluster-name myAKSCluster --resource-group myResourceGroup --node-vm-size Standard_D2s_v3 --zones 1 2 --node-count 2 --enable-ultra-ssd
49
39
```
50
40
51
-
If you want to create new node pools without support for ultra disks, you can do so by omitting the `--enable-ultra-ssd` parameter.
41
+
If you want to create new node pools without support for ultra disks, you can do so by excluding the `--enable-ultra-ssd` parameter.
52
42
53
43
## Use ultra disks dynamically with a storage class
54
44
55
-
To use ultra disks in our deployments or stateful sets you can use a [storage class for dynamic provisioning][azure-disk-volume].
45
+
To use ultra disks in your deployments or stateful sets, you can use a [storage class for dynamic provisioning][azure-disk-volume].
56
46
57
47
### Create the storage class
58
48
59
49
A storage class is used to define how a unit of storage is dynamically created with a persistent volume. For more information on Kubernetes storage classes, see [Kubernetes Storage Classes][kubernetes-storage-classes].
60
50
61
-
In this case, we'll create a storage class that references ultra disks. Create a file named `azure-ultra-disk-sc.yaml`, and copy in the following manifest.
51
+
In this example, you create a storage class that references ultra disks. Create a file named `azure-ultra-disk-sc.yaml`, and copy in the following manifest.
62
52
63
53
```yaml
64
54
kind: StorageClass
@@ -77,7 +67,7 @@ parameters:
77
67
78
68
Create the storage class with the [kubectl apply][kubectl-apply] command and specify your *azure-ultra-disk-sc.yaml* file:
79
69
80
-
```console
70
+
```bash
81
71
kubectl apply -f azure-ultra-disk-sc.yaml
82
72
```
83
73
@@ -109,7 +99,7 @@ spec:
109
99
110
100
Create the persistent volume claim with the [kubectl apply][kubectl-apply] command and specify your *azure-ultra-disk-pvc.yaml* file:
111
101
112
-
```console
102
+
```bash
113
103
kubectl apply -f azure-ultra-disk-pvc.yaml
114
104
```
115
105
@@ -152,7 +142,7 @@ spec:
152
142
153
143
Create the pod with the [kubectl apply][kubectl-apply] command, as shown in the following example:
154
144
155
-
```console
145
+
```bash
156
146
kubectl apply -f nginx-ultra.yaml
157
147
```
158
148
@@ -162,11 +152,13 @@ The output from the command resembles the following example:
162
152
pod/nginx-ultra created
163
153
```
164
154
165
-
You now have a running pod with your Azure disk mounted in the `/mnt/azure` directory. This configuration can be seen when inspecting your pod via `kubectl describe pod nginx-ultra`, as shown in the following condensed example:
155
+
You now have a running pod with your Azure disk mounted in the `/mnt/azure` directory. This configuration can be seen when inspecting your pod using the `kubectl describe pod nginx-ultra` command, as shown in the following condensed example:
166
156
167
-
```console
157
+
```bash
168
158
kubectl describe pod nginx-ultra
159
+
```
169
160
161
+
```console
170
162
[...]
171
163
Volumes:
172
164
volume:
@@ -189,38 +181,20 @@ Events:
189
181
190
182
## Using Azure tags
191
183
192
-
For more details on using Azure tags, see [Use Azure tags in Azure Kubernetes Service (AKS)][use-tags].
184
+
For more information on using Azure tags, see [Use Azure tags in Azure Kubernetes Service (AKS)][use-tags].
193
185
194
186
## Next steps
195
187
196
-
- For more about ultra disks, see [Using Azure ultra disks](../virtual-machines/disks-enable-ultra-ssd.md).
197
-
- For more about storage best practices, see [Best practices for storage and backups in Azure Kubernetes Service (AKS)][operator-best-practices-storage]
188
+
- For more information about ultra disks, see [Using Azure ultra disks](../virtual-machines/disks-enable-ultra-ssd.md).
189
+
- For more information about storage best practices, see [Best practices for storage and backups in Azure Kubernetes Service (AKS)][operator-best-practices-storage]
0 commit comments