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

52 lines
1.8 KiB
Plaintext

// Be sure to set the :StorageClass: and :Provisioner: value in each assembly
// on the line before the include statement for this module. For example, to
// set the StorageClass value to "AWS EBS", add the following line to the
// assembly:
// :StorageClass: AWS EBS
// Module included in the following assemblies:
//
// * storage/persistent_storage/persistent-storage-aws.adoc
// * storage/container_storage_interface/persistent-storage-csi-aws-efs.adoc
:_content-type: PROCEDURE
[id="storage-create-storage-class_{context}"]
= Creating the {StorageClass} storage class
Storage classes are used to differentiate and delineate storage levels and
usages. By defining a storage class, users can obtain dynamically provisioned
persistent volumes.
ifeval::["{Provisioner}" == "efs.csi.aws.com"]
The _AWS EFS CSI Driver Operator_, after being installed, does not create a storage class by default. However, you can manually create the AWS EFS `StorageClass`.
endif::[]
.Procedure
. In the {product-title} console, click *Storage* -> *Storage Classes*.
. On the *StorageClasses* overview page, click *Create Storage Class*.
. On the *StorageClasses* create page, enter values as desired:
.. Enter a name to reference the storage class.
.. Enter an optional description.
.. Select the reclaim policy.
.. Select *`{Provisioner}`* from the *Provisioner* drop-down list.
+
ifeval::["{Provisioner}" == "kubernetes.io/aws-ebs"]
[NOTE]
====
To create the storage class with the equivalent CSI driver, select `{CsiDriver}` from the drop-down list. For more details, see xref:../persistent_storage/persistent-storage-aws.adoc#additional-resources[Additional resources].
====
endif::[]
.. Enter additional parameters for the storage class as desired.
. Click *Create*.
// Undefine {StorageClass} attribute, so that any mistakes are easily spotted
:!StorageClass: