1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

OSDOCS-4397:Add ZRS support for Azure Disk CSI

This commit is contained in:
Lisa Pettyjohn
2023-03-14 12:24:01 -04:00
committed by openshift-cherrypick-robot
parent 0b99840c82
commit 02a70f9205
2 changed files with 62 additions and 0 deletions

View File

@@ -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: <storage-class> <1>
provisioner: disk.csi.azure.com
parameters:
skuName: <storage-class-account-type> <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.

View File

@@ -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]