Manage StorageClasses
Includes changing the default status, related configurations, or deleting storage classes.
Set default / Unset default storage classes
For storage classes that can be used in all projects, setting them as default will automatically create persistent volumes of the default type if no specific storage class is specified in the persistent volume claim.
Only one default storage class can be set in the same cluster. To switch the default storage class, first cancel the current default configuration and then set a new default storage class.
Procedure
-
Click Storage > StorageClass on the left navigation bar.
-
Click
and complete the operation as needed.-
Set as default storage class: Click Set as Default.
-
Cancel the default storage class setting: Click Undo the Default Setting.
The
icon will be displayed to the right of the default storage class name. -
Update a storage class
-
Click Storage > StorageClass on the left navigation bar.
-
Click
and complete the operation as needed.-
Allow other projects to use the storage class: Click Update project and complete the configuration.
-
Modify the storage class configuration: Click Update and complete the configuration in YAML.
-
-
Click Update.
Delete storage classes
After deleting the storage class, the persistent volume claims that were previously associated with the storage class remain bound to the persistent volumes that were dynamically created based on the storage class. However, it is no longer possible to dynamically create persistent volumes of this type.
Procedure
-
In the left navigation bar, click Storage > StorageClass.
-
Click
> Delete, and confirm.