You can define expansion policies for Apsara File Storage NAS (NAS) volumes that are managed by Container Network File System (CNFS). This allows you to automatically expand NAS volumes when the storage usage exceeds a specific threshold. This topic describes how to use CNFS to automatically expand NAS volumes.
Prerequisites
- A Kubernetes cluster is created. The Container Storage Interface (CSI) plug-in is
used as the volume plug-in. For more information, see Create an ACK managed cluster.
- If you want to use a new cluster, select the CSI volume plug-in and Dynamically Provision Volumes by Using the Default NAS File Systems and CNFS when you create the cluster.
- If you do not select Dynamically Provision Volumes by Using the Default NAS File Systems and CNFS when you create the cluster, you can use CNFS to manage NAS file systems. For more information, see Use CNFS to manage NAS file systems.
- The versions of csi-plugin and csi-provisioner are 1.20.5-ff6490f-aliyun or later. For more information about how to upgrade csi-plugin and csi-provisioner, see Upgrade CSI-Plugin and CSI-Provisioner.
- The default
dnsPolicy
of csi-plugin isClusterFirst
. If you want to use CNFS to automatically expand NAS volumes, you must changeClusterFirst
toClusterFirstWithHostNet
. - The version of storage-operator is 1.18.8.56-2aa33ba-aliyun or later. For more information about how to upgrade storage-operator, see Manage system components.
- A kubectl client is connected to the cluster. For more information, see Connect to ACK clusters by using kubectl.