Creating an NFS Shared Storage Class
Based on the community NFS CSI (Container Storage Interface) storage driver, it provides the capability to access multiple NFS storage systems or accounts.
Unlike the traditional client-server model of NFS access, NFS shared storage utilizes the community NFS CSI (Container Storage Interface) storage plugin, which is more aligned with Kubernetes design principles and allows client access to multiple servers.
TOC
Prerequisites
- An NFS server must be configured, and its access methods must be obtained. Currently, the platform supports three NFS protocol versions:
v3,v4.0, andv4.1. You can executenfsstat -son the server side to check the version information.
Deploying the NFS Shared Storage Plugin
-
Enter Platform Management.
-
In the left navigation bar, click Storage Management > Storage Classes.
-
Click Create Storage Class.
-
On the right side of NFS Shared Storage, click Deploy to navigate to the Plugins page.
-
On the right side of the NFS plugin, click ⋮ > Deploy.
-
Wait for the deployment status to indicate Deployment Successful before completing the deployment.
Creating an NFS Shared Storage Class
-
Click Create Storage Class.
Note: The following content is presented in a form, but you may also choose to complete the operation using YAML.
-
Select NFS Shared Storage and click Next.
-
Refer to the following instructions to configure the relevant parameters.
-
Once you have confirmed that the configuration information is correct, click Create.
Related Operations
Setting the naming rules for subdirectories in the NFS Shared Storage Class