Cluster storage management contains the following tasks:
Storage volume management contains the following tasks:
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
From the left navigation pane of the Storage tab, select PVs > Local Volume.
Click Create PV.
Configure volume parameters as needed, and then click OK.
Name: Specify a name for the PV. The system matches this PV when creating a PVC.
Volume Type: Specify a volume type. Only the Local Volume type is supported, which uses space on the worker node as the PV.
Select Node: Select the worker node to provide the storage volume space.
Capacity: Specify the size of the storage volume.
Access Mode: Specify the mode for the PV to access a node. Only Read/Write Once is supported.
Storage Path: Specify the storage volume path. To avoid PV unavailability, make sure the specified path exists.
Labels: Add labels by specifying a key and value pair. To add more labels, click Add.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
From the left navigation pane of the Storage tab, select PVs > iSCSI.
Click Add iSCSI Storage Volume.
Configure the parameters, and then click OK.
Name: Enter the name to display in this system for the iSCSI storage volume.
Target Path: Enter the storage volume path.
IP Address: Enter the IP address of the iSCSI storage server.
Storage Info: Select an available iSCSI storage volume on the iSCSI storage server.
Label: Click Add Label to configure label key and value. This Label is used for volume matching when you create a PVC.
Access Mode: Select an access mode from the Read Write Once and Read Only Many options.
· The ONEStor client is installed by default on CentOS and Euler operating systems and ONEStor storage volumes can be used. · The Kylin operating system is installed with the ceph-common-12.2.8-8.p01.ky10.x86_64 client, which is compatible with Ceph storage volumes but not ONEStor storage volumes. · If a Ceph storage volume cannot be mounted, check the volume configuration. If the configuration is correct, mount the volume on a node in the container cluster again, and then execute the dmesg command to review the log and then contact Technical Support. |
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
From the left navigation pane of the Storage tab, select PVs > Ceph.
Click Create.
Configure the parameters, and then click OK.
Name: Enter the name to display in this system for the Ceph storage volume.
Driver Type: Select a driver type. You can select only Ceph.
Capacity: Configure the size of the Ceph storage volume.
Access Mode: Select an access mode. You can select only Single-Node Read/Write.
Reclaim Policy: Select the action to take on the Ceph storage volume when it is deleted. You can select only Reserve.
Listener: Click Add to configure Ceph cluster listeners.
Storage Pool: Select a ONEStor metadata pool.
Image Name: Enter a name for the Ceph block device mapping.
User ID: Enter a ONEStor user ID.
Keyring: Enter a ONEStor user keyring.
Label: Click Add Label to configure a label key and value. This label is used for volume matching when you create a PV.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
To view data in the YAML file for a volume, click View YAML in the Actions column for that storage volume.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Click Labels in the Actions column for a volume.
Perform the following label management actions:
To add a label, enter a key and a value, and click Add. After you add all labels, click OK.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Click Delete in the Actions column for a volume.
Click OK.
Persistent Volume Claim (PVC) management contains the following topics:
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Select PVCs.
Click Add PVC.
Configure PVC parameters as needed, and then click OK.
Name: Specify a name for the PVC. The system uses this name to match a PVC when creating a workload.
Namespace: Select the namespace to which the PVC belongs.
Storage Volume Type: Options include Local Volume and iSCSI.
Bind to Volume: Specify how the PVC is bound to a PV. You must configure this parameter for local storage volumes. Options include the following:
Use Existing—Select an existing storage volume.
Auto Assign—You set the storage capacity. The system matches a storage volume automatically after you create the PVC.
Labels: Specify a label by key and value pair. To add multiple labels, click Add. You must configure this parameter for local storage volumes.
Capacity: Specify the capacity for the iSCSI storage volume. You must configure this parameter for iSCSI storage volumes.
Access Mode: Select an access mode, which must be consistent with the access mode of the corresponding iSCSI storage volume. You must configure this parameter for iSCSI storage volumes.
ReadWriteOnce: A PVC in this mode supports only one container group pod, and the PVC can be read and written.
ReadOnlyMany: A PVC in this mode supports multiple container group pods, and the PVC can be read but cannot be written.
PV Label Selector: Click Add to enter label key and value. To associate the PVC with an iSCSI storage volume, make sure the label key and value match those of the iSCSI storage volume. You must configure this parameter for iSCSI storage volumes.
PV Expression Selector: Click Add to enter label key and value. To associate the PVC with an iSCSI storage volume, make sure the label key and value match those of the iSCSI storage volume. You must configure this parameter for iSCSI storage volumes.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Select PVC.
To view data in the YAML file for a PVC, click View YAML in the Actions column for that PVC.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Select PVC.
Click Labels in the Actions column for a PVC.
Perform the following label management actions:
To add a label, enter a key and a value, and click Add. After you add all labels, click OK.
On the top navigation bar, click Container Engine.
From the left navigation pane, select Container Clusters.
Click the name of a cluster.
Click the Storage tab.
Select PVC.
Click Delete in the Actions column for a PVC.