Configure a volume

The system provides storage management based on Kubernetes persistent storage, which involves the following concepts:

The system provides the following provisioning methods for storage management:

Static provisioning

Create a PV

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Containers.

  1. Click the name of a cluster.

  1. Click the Storage tab.

  1. Select a storage type in the PV menu, and then click Add Storage Volume or Create.

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

  • Read Write Once—The PV can be mounted to a single node through read or write operation.

  • Multi-Node Read/Write—The PV can be mounted to multiple nodes through read or write operation.

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.

 

  1. Click OK.

Dynamic StorageClass provisioning

Create a storage class

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Containers.

  1. Click the name of a cluster.

  1. Click the Storage tab.

  1. Click StorageClass.

  1. Click Create.

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

 

  1. Click OK.

PVC

Create a PVC

Make sure PVs or StorageClasses have been configured before creating a PVC.

 

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Containers.

  1. Click the name of a cluster.

  1. Click the Storage tab.

  1. Click PVC.

  1. Click Create.

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

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

  • Multi-Node Read/Write—The PVC can be mounted to multiple nodes through read or write operation.

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.

 

  1. Click OK.