Home / Platform management / Storage / Object Storage Class / Create a StorageClass: Ceph object storage (Alpha)

Create a StorageClass: Ceph object storage (Alpha)

Ceph object storage can provide storage access for platforms based on the Container Object Storage Interface (COSI), and provide massive and flexible Ceph object storage services, suitable for scenarios such as big data, backup and recovery, and machine learning.

Explanation of nouns

Term Full Name Description
COSI Container Object Storage Interface Container Object Storage Interface aims to be a common abstraction layer across multiple object storage providers, dynamically providing object storage services to workloads. Third-party storage vendors can also use COSI to write plugins, exposing new storage systems in Kubernetes without modifying the core code.

Prerequisites

Prepare Ceph distributed storage service in advance using any of the following methods:

Procedure of operation

Deploy the container object storage interface plugin

To use the object storage feature, you need to first deploy the Container Object Storage Interface (COSI) plugin.

  1. In the left navigation pane, click Clusters > Cluster of clusters.

  2. Click on the name of the cluster where the component to be deployed is located.

  3. On the Plugins tab, click on the > Deployments button next to Container Object Storage Interface.

  4. Wait for the deployment status to be Deployment Successful to complete the deployment.

Deploy the volume plugin

  1. On the left navigation bar, click Storage > ObjectStorageClass.

  2. Click on Create Object StorageClass.

  3. Click on the Deploy on the Ceph Object Storage card to navigate to the corresponding cluster Plugin deployment page.

  4. Click on the Ceph Object Storage Volume Plugin on the right side of the page, then click on Deploy.

  5. Fill in the Access Address with the Access Address from Get Information .

  6. Click on Create.

  7. Click on Deploy.

Create a StorageClass

  1. In the left navigation pane, click Storage > ObjectStorageClass.

  2. Click Create Object StorageClass.

    Note: The following content is provided as an example using a form, but you can also choose to use the “YAML Create” option to complete the operation.

  3. Select Ceph Object Storage and click Next.

  4. Refer to the following instructions to configure some parameters.

    Parameter Description
    Recycle Strategy The recycling strategy for the storage bucket. The default strategy is delete, which means that when the storage bucket declaration is deleted, the bound storage bucket will also be deleted.
    Allocate Projects Please allocate the projects that can use this type of storage.
    If there are no projects currently in need of this type of storage, you can choose not to allocate projects for now and update them later.
  5. Click Create.

Relevant operations

Get Info

Due to different storage locations, the methods for obtaining the access address, ACCESSKEY, and SECRETKEY are also different. Please choose one of the following methods based on your actual configuration.