Skip to content

Commit e3996ef

Browse files
authored
Merge pull request #278678 from khdownie/kendownie061924
update disks flow
2 parents d59a477 + 129340a commit e3996ef

File tree

4 files changed

+157
-137
lines changed

4 files changed

+157
-137
lines changed

articles/storage/container-storage/container-storage-aks-quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ az aks update -n <cluster-name> -g <resource-group> --disable-azure-container-st
188188
> [!NOTE]
189189
> If you have an existing storage pool of the type that you're trying to disable, the storage pool type won't be disabled.
190190
191-
## Next steps
191+
## Next step
192192

193193
To create persistent volumes, select the link for the backing storage type you selected.
194194

195-
- [Create persistent volume claim with Azure managed disks](use-container-storage-with-managed-disks.md#create-a-persistent-volume-claim)
195+
- [Create persistent volume claim with Azure managed disks](use-container-storage-with-managed-disks.md#3-create-a-persistent-volume-claim)
196196
- [Create persistent volume claim with Ephemeral Disk](use-container-storage-with-local-disk.md#create-a-persistent-volume-claim)
197-
- [Create persistent volume claim with Azure Elastic SAN](use-container-storage-with-elastic-san.md#create-a-persistent-volume-claim)
197+
- [Create persistent volume claim with Azure Elastic SAN](use-container-storage-with-elastic-san.md#3-create-a-persistent-volume-claim)

articles/storage/container-storage/container-storage-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Feature support depends on which backing storage option you select. The followin
7373
Based on feedback from customers, we've included the following capabilities with the latest preview update:
7474

7575
- Improve stateful application availability by using [multi-zone storage pools and ZRS disks](enable-multi-zone-redundancy.md).
76-
- Enable server-side encryption with [customer-managed keys](use-container-storage-with-managed-disks.md#enable-server-side-encryption-with-customer-managed-keys) (Azure Disks only).
76+
- Enable server-side encryption with [customer-managed keys](use-container-storage-with-managed-disks.md#create-a-dynamic-storage-pool-using-your-own-encryption-key-optional) (Azure Disks only).
7777
- Scale up by dynamically expanding [volumes](resize-volume.md) and storage pools backed by Azure Disks and Ephemeral Disk without downtime.
7878
- [Clone persistent volumes](clone-volume.md) within a storage pool.
7979
- Optimize applications with Azure Linux Container Host.

articles/storage/container-storage/use-container-storage-with-elastic-san.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Configure Azure Container Storage for use with Azure Elastic SAN. C
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: how-to
7-
ms.date: 05/30/2024
7+
ms.date: 06/19/2024
88
ms.author: kendownie
99
ms.custom: references_regions
1010
---
@@ -17,7 +17,7 @@ ms.custom: references_regions
1717

1818
[!INCLUDE [container-storage-prerequisites](../../../includes/container-storage-prerequisites.md)]
1919

20-
- Ensure you have either an [Azure Container Storage Owner](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-owner) role or [Azure Container Storage Contributor](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-contributor) role on your subscription. Either of these roles will grant permissions that allow Azure Container Storage to communicate with the Elastic SAN resource. To make this change, go to your subscription page on the Azure Portal. Select **Access control (IAM) > Add role assignment** and search for either "Azure Container Storage Owner" or "Azure Container Storage Contributor" in the **Job function roles** tab. Select **View > Assignments > Add assignment** and add your account.
20+
- Ensure you have either an [Azure Container Storage Owner](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-owner) role or [Azure Container Storage Contributor](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-contributor) role on your subscription. Either of these roles will grant permissions that allow Azure Container Storage to communicate with the Elastic SAN resource. To make this change, go to your subscription page on the Azure portal. Select **Access control (IAM) > Add role assignment** and search for either "Azure Container Storage Owner" or "Azure Container Storage Contributor" in the **Job function roles** tab. Select **View > Assignments > Add assignment** and add your account.
2121

2222
> [!NOTE]
2323
> To use Azure Container Storage with Azure Elastic SAN, your AKS cluster should have a node pool of at least three [general purpose VMs](../../virtual-machines/sizes-general.md) such as **standard_d4s_v5** for the cluster nodes, each with a minimum of four virtual CPUs (vCPUs).
@@ -33,11 +33,15 @@ The following features aren't currently supported when you use Azure Container S
3333

3434
[!INCLUDE [container-storage-regions](../../../includes/container-storage-regions.md)]
3535

36-
## Create a storage pool
36+
## Create and attach persistent volumes
37+
38+
Follow these steps to create and attach a persistent volume.
39+
40+
### 1. Create a storage pool
3741

3842
First, create a storage pool, which is a logical grouping of storage for your Kubernetes cluster, by defining it in a YAML manifest file.
3943

40-
If you enabled Azure Container Storage using `az aks create` or `az aks update` commands, you might already have a storage pool. Use `kubectl get sp -n acstor` to get the list of storage pools. If you have a storage pool already available that you want to use, you can skip this section and proceed to [Display the available storage classes](#display-the-available-storage-classes).
44+
If you enabled Azure Container Storage using `az aks create` or `az aks update` commands, you might already have a storage pool. Use `kubectl get sp -n acstor` to get the list of storage pools. If you have a storage pool already available that you want to use, you can skip this section and proceed to [Display the available storage classes](#2-display-the-available-storage-classes).
4145

4246
Follow these steps to create a storage pool with Azure Elastic SAN.
4347

@@ -78,7 +82,7 @@ Follow these steps to create a storage pool with Azure Elastic SAN.
7882

7983
When the storage pool is created, Azure Container Storage will create a storage class on your behalf using the naming convention `acstor-<storage-pool-name>`. It will also create an Azure Elastic SAN resource.
8084

81-
## Display the available storage classes
85+
### 2. Display the available storage classes
8286

8387
When the storage pool is ready to use, you must select a storage class to define how storage is dynamically created when creating persistent volume claims and deploying persistent volumes.
8488

@@ -87,9 +91,9 @@ Run `kubectl get sc` to display the available storage classes. You should see a
8791
> [!IMPORTANT]
8892
> Don't use the storage class that's marked **internal**. It's an internal storage class that's needed for Azure Container Storage to work.
8993
90-
## Create a persistent volume claim
94+
### 3. Create a persistent volume claim
9195

92-
A persistent volume claim (PVC) is used to automatically provision storage based on a storage class. Follow these steps to create a PVC using the new storage class.
96+
A persistent volume claim (PVC) is used to automatically provision storage based on a storage class. Follow these steps to create a PVC using the new storage class.
9397

9498
1. Use your favorite text editor to create a YAML manifest file such as `code acstor-pvc.yaml`.
9599

@@ -129,7 +133,7 @@ A persistent volume claim (PVC) is used to automatically provision storage based
129133

130134
Once the PVC is created, it's ready for use by a pod.
131135

132-
## Deploy a pod and attach a persistent volume
136+
### 4. Deploy a pod and attach a persistent volume
133137

134138
Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for benchmarking and workload simulation, and specify a mount path for the persistent volume. For **claimName**, use the **name** value that you used when creating the persistent volume claim.
135139

@@ -187,19 +191,23 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
187191

188192
You've now deployed a pod that's using an Elastic SAN as its storage, and you can use it for your Kubernetes workloads.
189193

190-
## Detach and reattach a persistent volume
194+
## Manage persistent volumes and storage pools
195+
196+
Now that you've created a persistent volume, you can detach and reattach it as needed. You can also delete a storage pool.
197+
198+
### Detach and reattach a persistent volume
191199

192200
To detach a persistent volume, delete the pod that the persistent volume is attached to. Replace `<pod-name>` with the name of the pod, for example **fiopod**.
193201

194202
```azurecli-interactive
195203
kubectl delete pods <pod-name>
196204
```
197205

198-
To reattach a persistent volume, simply reference the persistent volume claim name in the YAML manifest file as described in [Deploy a pod and attach a persistent volume](#deploy-a-pod-and-attach-a-persistent-volume).
206+
To reattach a persistent volume, simply reference the persistent volume claim name in the YAML manifest file as described in [Deploy a pod and attach a persistent volume](#4-deploy-a-pod-and-attach-a-persistent-volume).
199207

200208
To check which persistent volume a persistent volume claim is bound to, run `kubectl get pvc <persistent-volume-claim-name>`.
201209

202-
## Delete a storage pool
210+
### Delete a storage pool
203211

204212
If you want to delete a storage pool, run the following command. Replace `<storage-pool-name>` with the storage pool name.
205213

0 commit comments

Comments
 (0)