This topic describes recommended mount types for mounting Apsara File Storage NAS file systems on Kubernetes clusters.

Recommended storage drivers

We recommend that you use the Alibaba Cloud FlexVolume storage driver. This type of storage driver supports multiple data stores, such as Apsara File Storage NAS, Cloud Paralleled File System (CPFS), Object Storage Service (OSS), and Block Storage. It provides you with flexible and diverse configuration parameters, improves user experience, and reduce the complexity of operations and maintenance.

Regardless of Container Service or user-created Kubernetes clusters that you are using, we recommend that you use Alibaba Cloud FlexVolume storage drivers to manage file systems.

You can perform the following steps to install an Alibaba Cloud FlexVolume driver.

  • If you are using Container Service and want to create a cluster, an Alibaba Cloud FlexVolume driver is installed by default. You only need to confirm that the driver version is v1.12.6.52-f6604e5-aliyun or later. If the driver version is earlier than v1.12.6.52-f6604e5-aliyun, we recommend that you update the driver version. For more information, see Update Alibaba Cloud FlexVolume drivers.
  • If you are using user-created Kubernetes clusters, we recommend that you first install an Alibaba Cloud FlexVolume driver. For more information, see Install an Alibaba Cloud FlexVolume storage driver.

Recommended mount types

In terms of flexibility and complexity of operations and maintenance, we recommend that you use persistent volumes (PVs) or persistent volume claims (PVCs) to mount file systems rather than volumes.

Not recommended mount types

We recommend that you use persistent volumes (PVs) or persistent volume claims (PVCs) to mount file systems and avoid using volumes. In some scenarios, you must use volumes to mount file systems. In such cases, you can only use Alibaba Cloud FlexVolume storage drivers to mount file systems rather than Kubernetes-native NFS drivers.