You can create a subdirectory in an Apsara File Storage NAS (NAS) file system and map the subdirectory to a dynamically provisioned persistent volume (PV) for applications. This topic describes how to mount a dynamically provisioned NAS volume.
Prerequisites
- A Container Service for Kubernetes (ACK) cluster is created and the FlexVolume plug-in is installed in the cluster. For more information, see Create a managed Kubernetes cluster.
- The alicloud-nas-controller component is deployed in the cluster. For more information, see Install and upgrade FlexVolume.
Precautions
If the securityContext.fsgroup parameter is set in the application template, kubelet performs the
chmod
or chown
operation after the volume is mounted, which increases the time consumption.
Note For more information about how to speed up the mounting process when the securityContext.fsgroup parameter is set, see Why does it require a long time to mount a NAS volume?.