Manage storage

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:

The system provides the following provisioning methods for storage management:

Add a storage volume

Static provisioning: Create a PV

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.

 

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. Select NFS, iSCSI, FC, or ceph, and then click Add Storage Volume.

  1. 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.

  • Single-Node Read/Write—A PV can be mounted to a single node in read-write mode.

  • Multi-Node Read/Write—A PV can be mounted to multiple nodes in read-write 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.

 

  1. Click OK.

Dynamic provisioning: Create a storage class

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. From the left navigation pane on the storage tab, select StorageClass.

  1. Click Create, and then configure the storage class parameters.

Table-2 Configuring storage class parameters

Storage volume type

Parameter

Description

NFS/ceph

/

  • Reclaim Policy:

  • Reserve: Select this option to reserve and release the associated storage class when deleting a PVC.

  • Delete: Select this option to delete the associated storage class when deleting a PVC.

  • Label: Configure labels for the storage class, which can be used to specify the storage class when you create a PVC.

 

  1. Click OK.

PVC-Create a PVC

Before creating PVCs, make sure PVs or storage classes have been created.

 

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. From the left navigation pane on the storage tab, select PVC.

  1. 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.

  • Single-Node Read/Write—The PVC can be mounted to a single node in read-write mode.

  • Multi-Node Read Only—The PVC can be mounted to multiple nodes in read-only mode.

  • Multi-Node Read/Write—The PVC can be mounted to multiple nodes in read-write 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.

 

  1. Click OK.

View details about a storage volume

You can perform this task to view the name, state, access mode, reclaim policy, label, IP, and path of a storage volume.

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. 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.

Reclaim a storage volume

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. Click Reclaim for a storage volume.

  1. In the dialog box that opens, click OK.

Delete a storage volume

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:

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Container.

  1. Click a cluster name.

  1. Click the Storage tab.

  1. Click Delete for a storage volume.

  1. Select a deletion option, and then click OK.