Create Persistent Volume Claims
This section explains how to create a Persistent Volume Claim.
Prerequisites
-
Application Management for Cluster Federation should have been installed and enabled.
-
You should join a multi-cluster project and have the Federated Project Management permission within the project.
Steps
-
Log in to the KubeSphere web console with a user who has the Federated Project Management permission, and access your multi-cluster project.
-
Click Persistent Volume Claim in the left navigation pane.
-
Click Create on the page.
-
On the Basic Information tab, set the basic information for the persistent volume claim, then click Next.
Parameter Description Name
The name of the persistent volume claim. The name can only contain lowercase letters, numbers, and hyphens (-), 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. Different persistent volume claims can have the same alias. The alias can only contain Chinese characters, letters, numbers, and hyphens (-), and cannot start or end with a hyphen (-), with a maximum length of 63 characters.
Description
The description of the persistent volume claim. The description can contain any characters, with a maximum of 256 characters.
-
On the Storage Settings tab, set the storage space requirements, then click Next.
Parameter Description 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.
Depending on the backend storage system, some access mode types may not be available.
Volume Capacity
The capacity size of the volume corresponding to the persistent volume claim.
-
-
On the Advanced Settings tab, set the labels and annotations for the persistent volume claim, then click Create.
-
Click Add to set multiple labels or annotations.
-
Click on the right of a created label or annotation to delete it.
-
-
On the Cluster Differences tab, use different storage settings for the persistent volume claim in different clusters.
Parameter Description 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.
Volume Capacity
The capacity of each persistent volume created from the persistent volume claim.
After the persistent volume claim is created, it will be displayed in the persistent volume claim list.
-
Feedback
Was this page Helpful?
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.