Storage management allows you to configure external NFS, iSCSI, FC, or ceph storage for cloud services and system components to use during deployment. For detailed configuration, see "Static provisioning: Create a PV."
In addition, the system provides richer storage management solutions based on Kubernetes persistent storage. Kubernetes persistent storage involves the following concepts:
PV—A persistent volume (PV) is a piece of storage assigned from the back-end storage. It is created and maintained by the administrator.
PVC—A persistent volume claim (PVC) is a request for PV submitted by a user. A PVC contains information such as storage size and access mode, based on which Kubernetes provides PVs to users.
Storage class—A storage class is used for the dynamic creation 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.
To use iSCSI storage volumes, you must associate all nodes in the cluster, including controller nodes and worker nodes with disks at the storage server end. You can add only Ext4 storage volumes. |
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
Select NFS, iSCSI, FC, or ceph, and then click Add Storage Volume.
Configure the storage volume parameters.
Table-1 Configuring storage volume parameters
Storage type |
Parameter |
Description |
NFS |
IP |
Server address of the NFS storage volume that has been mounted in the back end. |
Path |
Link of the NFS storage volume in the system cluster. |
|
Capacity |
Specify the available capacity. |
|
Access Mode |
Select an access mode.
|
|
Reclaim Policy |
Only Reserve is supported, which indicates that the associated PV will be reserved and released when a PVC is deleted. |
|
iSCSI |
Target Path |
Enter the path used to access the iSCSI storage volume on the container cluster. |
IP Address |
Enter the IP address of the server that has been mounted with the iSCSI storage volume. |
|
Storage Info |
Click Obtain Storage Info for the system to automatically fill in this field based on the IP address you have entered. |
|
Format |
Select this option to format a storage volume before adding the volume to the system. |
|
FC |
Target WWN Number |
WWN of the storage volume. |
LUN Number |
LUN of the storage volume. |
|
ceph |
Capacity |
Specify the available capacity. |
Access Mode |
Select an access mode. Only single-node read/write is supported, which indicates that a PV can be mounted to a single node in read-write mode. |
|
Reclaim Policy |
· Reserve: Select this option to reserve and release the associated PV when deleting a PVC. · Delete: Select this option to delete the associated PV when deleting a PVC. |
|
Listener/Storage Pool/Image Name/User ID/keyring |
See the deployment guide. |
|
Label |
Configure labels for the storage volume. The labels can be used to map cloud services to storage volumes in cloud service deployment. For example, when you add a storage volume for the Jenkins service of PaaS, add a label whose key and value are configured as pass and jenkins, respectively. When you deploy PaaS, configure the label of Jenkins as paas: jenkins. Then Jenkins will be automatically associated with the storage volume after deployment. If you do not configure a label for the storage volume, Jenkins will be automatically associated with a storage volume that meets Jenkins's requirements in deployment. |
Click OK.
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
From the left navigation pane on the storage tab, select StorageClass.
Click Create, and then configure the storage class parameters.
Table-2 Configuring storage class parameters
Storage volume type |
Parameter |
Description |
NFS/ceph |
/ |
|
Click OK.
Before creating PVCs, make sure PVs or storage classes have been created. |
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
From the left navigation pane on the storage tab, select PVC.
Click Create, and then configure the PVC parameters.
Table-3 Configuring PVC parameters
Parameter |
Description |
Namespace |
Select a namespace. Only applications and services deployed in the namespace can use the PVC. |
Capacity |
Specify the PVC size. |
Access Mode |
Select an access mode.
|
Storage Class |
You can configure this parameter to select a storage class or select a storage class by using the PV label selector and PV expression selector. If you select a storage class, the PV label selector and PV expression selector parameters are not configurable. |
PV Label Selector/PV Expression Selector |
You can select a PV or storage class by using the PV label selector and PV expression selector in both static and dynamic supply modes. If you do not configure the PV label selector and PV expression selector parameters, the system selects PVs based on capacity size and access mode. |
Click OK.
You can perform this task to view the name, state, access mode, reclaim policy, label, IP, and path of a storage volume.
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
Click the storage volume type of the target storage volume.
Label: The storage volume list displays the labels of all storage volumes falling into this type, including system labels and customized labels.
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
Click Reclaim for a storage volume.
In the dialog box that opens, click OK.
You can delete the storage volume with its configuration information from the system, or delete the storage volume and format it to erase its data completely.
To delete a storage volume:
On the top navigation bar, click Resources.
From the left navigation pane, select Container.
Click a cluster name.
Click the Storage tab.
Click Delete for a storage volume.