Configuration Item | Description |
Instance creation mode | Select Shared instance. |
Availability zone | We recommend you select the same AZ as that of the container host. |
Storage type | Select Standard storage or Performance storage as needed. |
Protocol version | Unless in scenarios involving concurrent modifications, we recommend you use the NFS v3 protocol for better performance. |
Reclaim policy | Select Delete or Retain as needed. To avoid unexpected data deletion, we recommend you select Retain. |
Configuration Item | Description |
Namespace | Select a namespace as needed. |
StorageClass | Select the StorageClass you just created. |
PersistentVolume | You don't need to specify a PV for dynamic creation. Note: For a StorageClass based on a shared CFS instance, if you don't specify a PV when creating a PVC, the CSI plugin will automatically create a pay-as-you-go CFS instance when creating a PVC. This instance will be deleted when the PVC is deleted. Therefore, process PVCs created in this way with caution. |
Configuration Item | Description |
Volume | Name the volume as needed and select the PVC you just created. |
Mount point | Select the volume and specify the path for mounting to the container. When you dynamically create a shared CFS instance, you need to specify an environment variable, and the CSI plugin will create a directory in the CFS instance corresponding to the selected PVC based on the value of the configured environment variable for the container to mount. |
Configuration Item | Description |
Instance creation mode | Select Shared instance. |
Availability zone | We recommend you select the same AZ as that of the container host. |
Storage type | Select Standard storage or Performance storage as needed. |
Protocol version | Unless in scenarios involving concurrent modifications, we recommend you use the NFS v3 protocol for better performance. |
Reclaim policy | Select Delete or Retain as needed. To avoid unexpected data deletion, we recommend you select Retain. |
Configuration Item | Description |
Creation method | Select Manual; that is, specify a CFS instance for PV configuration. |
StorgeClass | Select the StorageClass you just created. |
Select CFS | Select a specified CFS instance. Note: During static creation, make sure that you already have a CFS instance in the same VPC as the container. |
CFS subdirectory | CFS allows you to mount subdirectories. You can select different subdirectories and bind them to one or multiple PVs as needed to implement different degrees of data sharing. |
Configuration Item | Description |
Namespace | Select a namespace as needed. |
StorageClass | Select the StorageClass you just created. |
PersistentVolume | Select Specify and select the PV you just created. |
Configuration Item | Description |
Volume | Name the volume as needed and select the PVC you just created. |
Mount point | Select the volume and specify the path for mounting to the container. To achieve automatic subdirectory creation, you can use two methods. Method 1: Select subPath as the mount point and enter the name of the path you want to mount, such as test. Then, the CSI plugin will automatically create the test directory under the root path of the file system and automatically mount it to the specified directory of the container. Method 2: Add an environment variable and assign a value to it. Select subPathExpr as the mount point and select the environment variable. The CSI plugin will use the value of the environment variable as the directory name, automatically create the directory under the root path of the file system, and automatically mount it to the specified directory of the container. |
Was this page helpful?