Alauda Container Platform can be provisioned with persistent storage by using local volumes. Local persistent volumes allow you to access local storage devices, such as a disk or partition, by using the standard persistent volume claim interface.
Local volumes can be used without manually scheduling pods to nodes because the system is aware of the volume node constraints. However, local volumes are still subject to the availability of the underlying node and are not suitable for all applications.
Local volumes can only be used as a statically created persistent volume.
Download the Alauda Build of LocalStorage installation package corresponding to your platform architecture.
Upload the Alauda Build of LocalStorage installation package using the Upload Packages mechanism.
You have a local disk that meets the following conditions:
Login, go to the Administrator page.
Click Marketplace > OperatorHub to enter the OperatorHub page.
Find the Alauda Build of LocalStorage, click Install, and navigate to the Install Alauda Build of LocalStorage page.
Configuration Parameters:
| Parameter | Recommended Configuration |
|---|---|
| Channel | The default channel is stable. |
| Installation Mode | Cluster: All namespaces in the cluster share a single Operator instance for creation and management, resulting in lower resource usage. |
| Installation Place | Select Recommended, Namespace only support acp-storage. |
| Upgrade Strategy | Manual: When there is a new version in the Operator Hub, manual confirmation is required to upgrade the Operator to the latest version. |
Local volumes cannot be created by dynamic provisioning. Instead, persistent volumes can be created by the Local Storage Operator. The local volume provisioner looks for any file system or block volume devices at the paths specified in the defined resource.
Create the local volume resource. This resource must define the nodes and paths to the local volumes.
Do not use different storage class names for the same device. Doing so will create multiple persistent volumes (PVs).
Execute commands on the control node of the cluster.
acp-storage.kubectl get node. If a value is not defined, then the Local Storage Operator will attempt to find matching disks on all available nodes.forceWipeDevicesAndDestroyAllData: true is destructive and will erase existing partition tables/filesystem signatures and data on those devices. Use only when you are certain the devices can be safely wiped.Filesystem or Block, that defines the type of local volumes.volumeMode set to Filesystem.LocalVolume resource by-id, such as /dev/disk/by-id/wwn. PVs are created for these local disks when the provisioner is deployed successfully.Verify that the persistent volumes were created:
Execute commands on the control node of the cluster.
Example output:
Editing the LocalVolume object does not change the fsType or volumeMode of existing persistent volumes because doing so might result in a destructive operation.
Creating the local volume persistent volume claim
Execute commands on the control node of the cluster.
Filesystem.The Local Storage Operator automates local storage discovery.
Create LocalVolumeDiscovery object
Execute commands on the control node of the cluster.
Verify discover result
Execute commands on the control node of the cluster.
Example output:
A dedicated LocalVolumeDiscoveryResult object is generated for selected nodes in LocalVolumeDiscovery Object, from which you can inspect the block devices discovered on that node.