This section describes how to create a PersistentVolumeClaim.

Prerequisites

  • The Application Management for Cluster Federation extension must be installed and enabled on the KubeSphere platform.

  • You need to join a federated project and have the Federated Project Management permission in the corresponding workspace.

Steps

  1. Log in to the KubeSphere web console as a user with Federated Project Management permissions and enter your federated project.

  2. Click PersistentVolumeClaims in the left navigation pane.

  3. Click Create on the page.

  4. On the Basic Information tab, set the basic information for the PersistentVolumeClaim, then click Next.

    Parameter Description

    Name

    The name of the PersistentVolumeClaim. 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 253 characters.

    Alias

    The alias of the PersistentVolumeClaim. Different PersistentVolumeClaims can have the same alias.

    Description

    The description of the PersistentVolumeClaim. The description can contain any characters and has a maximum length of 256 characters.

  5. On the Storage Settings tab, set the storage requirements, then click Next.

    Parameter Description

    Access Mode

    Read and Write Modes for Persistent Volumes.

    • RWO (ReadWriteOnce): Allows a single node to read data from and write data to the persistent volume.

    • ROX (ReadOnlyMany): Allows multiple nodes to read data from the persistent volume.

    • RWX (ReadWriteMany): Allows multiple nodes to read data from and write data to the persistent volume.

    Depending on the backend storage system, some access mode types may not be available.

    Volume Capacity

    The capacity of the volume corresponding to the PersistentVolumeClaim.

  6. On the Advanced Settings tab, set the labels and annotations for the PersistentVolumeClaim, then click Create.

    • Click Add to set multiple labels or annotations.

    • Click trash-light on the right side of a created label or annotation to delete it.

  7. On the Cluster Difference Settings tab, configure different storage settings for the PersistentVolumeClaim in different clusters.

    Parameter Description

    StorageClass

    The StorageClass used to create the PersistentVolumeClaim.

    Access Mode

    Read and Write Modes for Persistent Volumes.

    • RWO (ReadWriteOnce): Allows a single node to read data from and write data to the persistent volume.

    • ROX (ReadOnlyMany): Allows multiple nodes to read data from the persistent volume.

    • RWX (ReadWriteMany): Allows multiple nodes to read data from and write data to the persistent volume.

    Volume Capacity

    The capacity of each PersistentVolume created through the PersistentVolumeClaim template.

    After the PersistentVolumeClaim is created, it will be displayed in the PersistentVolumeClaim list.