< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Create PVCs

This section explains how to create a Persistent Volume Claim.

Prerequisites

You should join a cluster and have the Persistent Volume Claim Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

Steps

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

  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.

    Parameter Description

    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.

    Parameter Description

    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.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page