The cnfs-nas-daemon component integrates the client tools required for mounting File Storage NAS (Network Attached Storage) and Cloud Parallel File Storage (CPFS) volumes, supporting their advanced features. This topic describes how to install and use the cnfs-nas-daemon component.
Overview
The cnfs-nas-daemon component operates as a containerized DaemonSet, embedding client tools for NAS and CPFS. This component:
Does not require installation of client tools on Kubernetes nodes.
Supports:
Prerequisites
The cluster runs Kubernetes 1.26 or later. Manually upgrade the cluster if needed.
The csi-plugin component V1.33.1 or later is installed in the cluster. To upgrade, see Manage the csi-plugin and csi-provisioner components.
Procedure
Log on to the ACK console. In the left navigation pane, click Clusters.
On the Clusters page, find the one you want to manage and click its name. In the left navigation pane, click Add-ons.
Click the Storage tab.
Install the cnfs-nas-daemon component.
After installing cnfs-nas-daemon, the system will automatically deploy a DaemonSet in the cluster.
Find the cnfs-nas-daemon component and click Install.
Configure the DaemonSet parameters for cnfs-nas-daemon as needed and click OK.
ImportantThe DaemonSet for cnfs-nas-daemon defaults to
updateStrategy: OnDelete, preventing mass disruption of pods with mounted volumes during component upgrades. You can manually delete the original pods to complete the update, or modifyupdateStrategytoRollingUpdate.Verify the deployment status of the DaemonSet for cnfs-nas-daemon:
kubectl get pods -n cnfs-system -l app=cnfs-nas-daemonExpected output:
NAME READY STATUS RESTARTS AGE cnfs-nas-daemon-47mjw 1/1 Running 0 56s cnfs-nas-daemon-dkf4d 1/1 Running 0 56s cnfs-nas-daemon-s2btk 1/1 Running 0 56sImportantWhen a cnfs-nas-daemon pod restarts, it also restarts the related NAS or CPFS client process:
During this restart period, I/O operations on the mount point will be temporarily blocked or delayed.
After the restart is complete, I/O operations will automatically resume normal functionality, typically without causing service disruption.
Modify the parameter configuration of csi-plugin to enable cnfs-nas-daemon:
Locate the csi-plugin component and click Configuration.
Add
AlinasMountProxy=trueto FeatureGate.After adding this feature gate, Container Storage Interface (CSI) will use cnfs-nas-daemon for mounting.