Create a StorageClass: CephFS file storage
CephFS file storage is a built-in Ceph file storage for the platform, which can provide storage access based on CSI (Container Storage Interface) for the platform, and can provide secure, reliable, and scalable shared file storage services, suitable for file sharing, data backup and other scenarios. Before that, you need to create a CephFS file storage class.
After binding the storage class in the PersistentVolumeClaim (PVC), the platform will dynamically create a persistent volume on the node for business applications to use.
Deployment volume plugin
Click Deployments, and then create a storage service or access a storage service in the Distributed Storage page. For more information, see Create a Storage Service or Access a Storage Service .
Create a StorageClass
-
In the left navigation bar, click Storage > StorageClass.
-
Click Create StorageClass.
Note: The following content is an example in the form of a form. You can also choose
> Create in YAML to complete the operation. -
Select CephFS File Storage and click Next.
-
Configure the relevant parameters according to the following instructions.
Parameter Description Recycle Strategy The recycling strategy for persistent volumes.
- Delete: When the persistent volume claim is deleted, the bound persistent volume will also be deleted.
- Retain: Even if the persistent volume claim is deleted, the bound persistent volume will still be retained.Access mode All access modes supported by the current storage. When declaring a persistent volume later, only one of these modes can be selected to mount the persistent volume.
- ReadWriteOnce (RWO): Can be mounted by one node in read-write mode.
- ReadWriteMany (RWX): Can be mounted by multiple nodes in read-write mode.Allocate Project Please allocate the project that can use this type of storage.
If there are no projects that need to use this type of storage temporarily, you can also not allocate projects first and update them later.Tip: The following parameters need to be set in the distributed storage and will be directly applied here.
-
Storage Cluster: The built-in Ceph storage cluster in the current cluster.
-
Storage Pool: The logical partition used to store data in the storage cluster.
-
-
Click Create.