Storage class

The storage class is used to define the different storage types in the container cluster.

Storage class is used to define different storage types in a container cluster, currently only local storage and Ceph storage are supported. The storage class for local storage is provided by default for container clusters. Storage classes are used to work with persistent volumes (PV) to dynamically create the needed storage resources.

For more details on storage classes, please see kubernets official documentation - Storage Classes.

Entry: In the cloud management platform, click the top left corner of navigation menu, and click “Containers/Clusters/Storage Classes” menu item in the left menu bar that pops up to enter the Storage Classes page.

View Storage Classes

This function is used to view the storage class information of a cluster.

  1. In the Storage Classes page, by default, you can view the storage class information under one cluster.

  2. When there are multiple clusters in the environment, you can click the input box on the right side of the cluster above the list and select other clusters to view the storage class information under other clusters.

Create storage class

This function is used to create a Ceph type storage class. Before creating the storage class, please create a new class in service component to interface with Ceph CSI.

  1. On the Storage Classes page, click the “Create” button at the top of the list to enter the Create Storage Classes page.
  2. Configure the following parameters.
    • Storage System: Only Ceph RBD is currently supported.
    • Name: Set the name of the storage class.
    • Cluster: Select the cluster to which the storage class belongs.
    • Confidentiality dictionary: Select the confidentiality dictionary of Ceph RBD type.
    • Ceph Cluster: Select the Ceph cluster that has been docked in the service component.
    • Pool: Ceph RBD pool. Default is “rbd”.
    • File System: Define the file system type, support ext4 and xfs. Click the “OK” button to complete the operation.

Set as default

This function is used to set the storage class as default, the default storage class will be used for dynamic PVC configuration storage without specific storage class requirements.

  1. On the Storage Classes page, click the “Set as Default” button in the action column to the right of the storage class to set the storage class as default.

Delete

This function is used to delete a storage class.

Delete

  1. On the Storage Classes page, click the “Delete” button in the action column on the right side of the storage class, and the action confirmation dialog box will pop up.
  2. Click the “OK” button to delete the storage class and related resources.

Batch Delete

  1. Select one or more storage classes in the list of storage classes, and click the “Delete” button at the top of the list, the action confirmation dialog box will pop up.
  2. Click the “OK” button to delete the storage class and the related resources.

View/Edit

This function is used to view or edit the yaml file of a storage class.

  1. In the Storage Classes page, click the “View/Edit” button on the right column of the storage class to bring up the View/Update dialog box.
  2. Support viewing and editing the yaml file information of the storage class.
  3. After editing the yaml file, click the “OK” button to take effect.

View storage class details

This function is used to view the information about the storage class.

  1. On the Storage Classes page, click the Storage Class Name item to enter the Storage Class Details page.
  2. View the following information: Cloud ID, ID, name, status, domain, project, cluster, default, provisioning site, created at, updated at, notes, etc.

View Events

This feature is used to record the occurrence of resource object events, including content, source, cause, and created at, for troubleshooting purposes.

  1. On the Storage Classes page, click the Storage Class Name item to enter the Storage Class Details page.
  2. Click the Events tab to enter the Events page. View the content, source, cause, and created at of the event.

View source information

This function is used to view and edit the yaml information of the storage class.

  1. On the Storage Classes page, click the storage class name item to enter the storage class details page.
  2. Click the “Source Information” tab to enter the source information page.
  3. Click the “Copy Content” button to copy the yaml file information of the node.
  4. After updating the yaml file, click the “Update” button.

View Operation Log

This function is used to view the operation logs related to the storage class.

  1. On the Storage Classes page, click the storage class name item to enter the storage class details page.
  2. Click the Operation Log tab to enter the Operation Log page.
    • Load More Logs: In the Operation Logs page, the list shows 20 operation logs by default. To view more operation logs, click the “Load More” button to get more logs.
    • View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
    • View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
    • Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up export data dialog, and click the “OK” button to export the logs.