Create PVCs

This section explains how to create a Persistent Volume Claim.

Prerequisites

You should join a project and have the Persistent Volume Claim Management permission within the project. For more information, refer to “Project Members” and “Project Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Persistent Volume Claim Management permission, and access your project.

  2. Click Storage > Persistent Volume Claims in the left navigation pane.

  3. Click Create on the page.

  4. On the Basic Information tab, set the basic information for the Persistent Volume Claim, and then click Next.

    ParameterDescription

    Name

    The name of the Persistent Volume Claim. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number and can be up to 253 characters long.

    Alias

    The alias of the Persistent Volume Claim. The aliases of different Persistent Volume Claims can be the same. The alias can only contain Chinese characters, letters, numbers, and hyphens (-). It must not start or end with a hyphen (-) and can be up to 63 characters long.

    Description

    The description of the Persistent Volume Claim. The description can contain any characters and can be up to 256 characters long.

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

    ParameterDescription

    Creation Method

    From Storage Class: Choose a storage class in the current project to create the Persistent Volume Claim.

    Storage Class

    The storage class used to create the Persistent Volume Claim.

    Access Mode

    The access modes of Persistent Volumes.

    • RWO (ReadWriteOnce): Allows a single node to read from and write to the Persistent Volume.

    • ROX (ReadOnlyMany): Allows multiple nodes to read from the Persistent Volume.

    • RWX (ReadWriteMany): Allows multiple nodes to read from and write to the Persistent Volume.

    Certain access mode may not be available depending on the backend storage system.

    Volume Capacity

    The corresponding volume capacity of the Persistent Volume Claim.

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

    • Click Add to set multiple labels or annotations.

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

    The Persistent Volume Claim will be displayed in the list after creation.