The system provides storage management based on Kubernetes persistent storage, which involves the following concepts:
Persistent volume—A PV is a piece of storage in the cluster that has been provisioned by an administrator.
Persistent volume claim—A PVC is a request for storage by a user. This request contains the capacity and access mode for the storage resource. Kubernetes searches for and provides matching PVs.
StorageClass—A StorageClass is used for dynamic provisioning of PVs.
The system provides the following provisioning methods for storage management:
Static provisioning—A system administrator creates a number of PVs. NFS, iSCSI, FC, and Ceph volumes are supported. A user creates a PVC when deploying applications and services, and the system matches a PV for the PVC automatically.
Dynamic provisioning—A system administrator creates a StorageClass. When a user creates a PVC, the system dynamically provisions a volume from the StorageClass for the PVC. NFS and Ceph volumes are supported.
PVC—A system administrator creates PVCs for users to use when the user deploys applications and services. NFS, iSCSI, FC, and Ceph volumes are supported.
On the top navigation bar, click Resources.
From the left navigation pane, select Containers.
Click the name of a cluster.
Click the Storage tab.
Select a storage type in the PV menu, and then click Add Storage Volume or Create.
Configure volume settings.
Table-1 Configuring volume parameters
Volume type |
Parameter |
Description |
iSCSI |
Target Path |
Path of the iSCSI storage volume in the container cluster. |
IP Address |
Specify the IP address of the iSCSI server. |
|
Obtain Storage Info |
Click Obtain Storage Info. The system will automatically identify the iSCSI storage volume if you have configured a correct IP address. |
|
Format |
Select whether to format the volume. If you format a volume, all data in the volume will be deleted. |
|
NFS |
IP |
Specify an NFS server IP address. |
Path |
Specify the path of the NFS volume in the container cluster. |
|
Capacity |
Specify the capacity to assign to users. |
|
Access Mode |
Select an access mode. Options include the following:
|
|
Reclaim Policy |
Only Reserve is supported. The PV is not deleted when the associated PVC is deleted. |
|
Label |
Add labels for PVCs to match the PV. |
|
FC |
Storage Info |
Select an FC storage volume. |
Label |
Add labels for PVCs to match the PV. |
|
Ceph |
Capacity |
Specify the capacity that can be assigned to users. |
Access Mode |
Only Single-Node Read/Write is supported. The PV can be mounted to a single node through read or write operation. |
|
Reclaim Policy |
Only Reserve is supported. The PV is not deleted when the associated PVC is deleted. |
|
Listener IP/Port |
Enter the IP address and port number of the server to which the monitor is attached in the Ceph storage cluster, that is, the service IP address and port number of a Ceph service server (for example, a server that provides ONEStor storage service). To obtain this information from the Ceph storage, log in to the backend of the host that provides Ceph storage, and execute the ceph mon_status command. |
|
Storage Pool |
Enter the name of the storage pool that provides Ceph storage. To obtain this information from the Ceph storage, log in to the backend of the host that provides Ceph storage, and execute the ceph osd lspools command. Then, select a storage pool suffixed with .rbd. |
|
Image Name |
Enter the disk image name on block devices in the Ceph storage cluster. To obtain this information from the Ceph storage, log in to the backend of the host that provides Ceph storage, and execute the rbd list pool command. Then, identify the image name for the storage pool specified by the pool argument. |
|
User ID |
Enter the user ID used for access to the Ceph storage cluster, which is typically admin. Enter the user ID depending on the Ceph storage settings. |
|
keyring |
Enter the keyring for Ceph cluster authentication. For user admin, the keyring is typically saved in the ceph.client.admin.keyring file that is generated when the Ceph storage cluster is created. To obtain this information from the Ceph storage, log in to the backend of the host that provides Ceph storage, and execute the ceph auth get client.admin command. |
|
Label |
Add labels for PVCs to match the PV. |
Click OK.
On the top navigation bar, click Resources.
From the left navigation pane, select Containers.
Click the name of a cluster.
Click the Storage tab.
Click StorageClass.
Click Create.
Configure volume settings.
Table-2 Configuring volume parameters
Volume type |
Parameter |
Description |
|
Driver |
NFS |
IP |
Enter the IP address of the NFS server. |
Path |
Enter the path of the NFS storage volume in the container cluster. |
||
Reclaim Policy |
Only Reserve is supported. The system does not delete the PV associated with the StorageClass when deleting the PVC associated with the StorageClass. |
||
Ceph RBD |
Listener IP/Port |
Enter the service IP address and port number of the Ceph service host (for example, host that provides ONEStor storage service). To obtain this information from the Ceph storage, execute the ceph mon_status command at the backend of the host that provides Ceph storage. |
|
Storage Pool |
Enter the name of the storage pool that provides Ceph storage. To obtain this information from the Ceph storage, execute ceph osd lspools at the backend of the host that provides Ceph storage, and select the storage pool suffixed with .rbd. |
||
Administrator ID/keystring |
Enter the keyring. To obtain this information from the Ceph storage, execute the ceph auth get client.admin command at the backend of the host that provides Ceph storage. |
||
User ID/keystring |
|||
Reclaim Policy |
Only Reserve is supported. The system does not delete the PV associated with the StorageClass when deleting the PVC associated with the StorageClass. |
||
Label |
Add labels for PVCs to match the StorageClass. |
Click OK.
Make sure PVs or StorageClasses have been configured before creating a PVC. |
On the top navigation bar, click Resources.
From the left navigation pane, select Containers.
Click the name of a cluster.
Click the Storage tab.
Click PVC.
Click Create.
Configure PVC settings.
Table-3 Configuring PVC parameters
Parameter |
Description |
Namespace |
Select a namespace for the applications in the namespace to use the PVC. |
Capacity |
Specify the capacity of the PVC. |
Access Mode |
Select an access mode for the PVC to access nodes in the cluster.
|
Storage Classes |
To use dynamic provisioning, select storage classes. The PV Label Selector and PV Expression Selector options become unavailable if you select storage classes. You can also use PV Label Selector to select storage classes. |
PV Label Selector/PV Expression Selector |
To use static provisioning, specify key/value pairs for the system to automatically select PVs or storage classes that match the selectors. If you do not configure this option, the system selects matching PVs based on the capacity and access mode. |