This section describes how to create a volume snapshot class.

Prerequisites

  • The KubeSphere Storage extension must be installed and enabled on the KubeSphere platform.

  • You need to join a cluster and have the Volume Snapshot Class Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.

  • To ensure the volume snapshot class can provide storage resources normally, you need to configure the storage system in advance and install the corresponding storage plugin for the storage system. For more information, please contact your storage system provider.

Steps

  1. Log in to the KubeSphere web console with a user who has Volume Snapshot Class Management permissions and enter your cluster.

  2. Click Storage > Volume Snapshot Classes in the left navigation pane.

  3. Click Create on the page.

  4. On the Basic Information tab, set the basic information for the volume snapshot class, then click Next.

    Parameter Description

    Name

    The name of the volume snapshot class. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and has a maximum length of 63 characters.

    Storage Type

    Block storage, object storage, or file storage.

    Alias

    The alias of the volume snapshot class. Different volume snapshot classes can have the same alias.

    Description

    The description of the volume snapshot class. The description can contain any characters and has a maximum length of 256 characters.

  5. On the Volume Snapshot Class Settings tab, set the provisioner and deletion policy for the volume snapshot class, then click Create.

    Parameter Description

    Provisioner

    The storage plugin used by the volume snapshot class.

    Deletion Policy

    The policy applied to the volume snapshot content when the volume snapshot is deleted. The deletion policy is set in the corresponding volume snapshot class.

    • Delete: After the volume snapshot is deleted, the system automatically deletes the volume snapshot content.

    • Retain: After the volume snapshot is deleted, the system does not automatically delete the volume snapshot content.

    After the volume snapshot class is created, it will appear in the volume snapshot class list.