diff --git a/modules/persistent-storage-csi-azure-disk-sc-zrs.adoc b/modules/persistent-storage-csi-azure-disk-sc-zrs.adoc new file mode 100644 index 0000000000..eabea5294b --- /dev/null +++ b/modules/persistent-storage-csi-azure-disk-sc-zrs.adoc @@ -0,0 +1,60 @@ +// +// Module included in the following assemblies: +// +// * storage/container_storage_interface/persistent-storage-csi-azure.adoc +// + +:_content-type: PROCEDURE +[id="persistent-storage-csi-azure-disk-sc-zrs_{context}"] += Creating a storage class with storage account type + + +Storage classes are used to differentiate and delineate storage levels and usages. By defining a storage class, you can obtain dynamically provisioned persistent volumes. + +When creating a storage class, you can designate the storage account type. This corresponds to your Azure storage account SKU tier. Valid options are `Standard_LRS`, `Premium_LRS`, `StandardSSD_LRS`, `UltraSSD_LRS`, `Premium_ZRS`, `StandardSSD_ZRS`, and `PremiumV2_LRS`. For information about finding your Azure SKU tier, see link:https://learn.microsoft.com/en-us/rest/api/storagerp/srp_sku_types[SKU Types]. + +.Prerequisites + +* Access to an {product-title} cluster with administrator rights + +.Procedure + +Use the following steps to create a storage class with a storage account type. + +. Create a storage class designating the storage account type using a YAML file similar to the following: ++ +[source, terminal] +-- +$ oc create -f - << EOF +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: <1> +provisioner: disk.csi.azure.com +parameters: + skuName: <2> +reclaimPolicy: Delete +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +EOF +-- +<1> Storage class name. +<2> Storage account type. This corresponds to your Azure storage account SKU tier:`Standard_LRS`, `Premium_LRS`, `StandardSSD_LRS`, `UltraSSD_LRS`, `Premium_ZRS`, `StandardSSD_ZRS`, `PremiumV2_LRS`. + +. Ensure that the storage class was created by listing the storage classes: ++ +[source,terminal] +-- +$ oc get storageclass +-- ++ +[source,terminal] +.Example output +-- +$ oc get storageclass +NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE +azurefile-csi file.csi.azure.com Delete Immediate true 68m +managed-csi (default) disk.csi.azure.com Delete WaitForFirstConsumer true 68m +sc-prem-zrs disk.csi.azure.com Delete WaitForFirstConsumer true 4m25s <1> +-- +<1> New storage class with storage account type. diff --git a/storage/container_storage_interface/persistent-storage-csi-azure.adoc b/storage/container_storage_interface/persistent-storage-csi-azure.adoc index 689e37a9e0..9ca0afe71d 100644 --- a/storage/container_storage_interface/persistent-storage-csi-azure.adoc +++ b/storage/container_storage_interface/persistent-storage-csi-azure.adoc @@ -29,6 +29,8 @@ In future {product-title} versions, volumes provisioned using existing in-tree p After full migration, in-tree plugins will eventually be removed in later versions of {product-title}. ==== +include::modules/persistent-storage-csi-azure-disk-sc-zrs.adoc[leveloffset=+1] + //Machine sets that deploy machines on ultra disks using PVCs include::modules/machineset-azure-ultra-disk.adoc[leveloffset=+1]