The cnfs-nas-daemon add-on integrates the client tools required for mounting File Storage NAS (Network Attached Storage) and Cloud Parallel File Storage (CPFS) volumes, supporting their advanced features.
Overview
The cnfs-nas-daemon add-on runs as a DaemonSet that bundles the CPFS client tool. This add-on:
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 v1.33.1 or later is installed in the cluster. To upgrade, see Manage CSI components.
Procedure
Log on to the ACK console. In the left navigation pane, click Clusters.
On the Clusters page, click the name of your cluster. In the left navigation pane, click Components and Add-ons.
Click the Volumes tab.
Install the cnfs-nas-daemon add-on.
Installing cnfs-nas-daemon deploys a DaemonSet in the cluster.
Find the cnfs-nas-daemon 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 add-on upgrades. 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 are temporarily blocked or delayed.
After the restart, I/O operations resume automatically, typically without service interruption.
Modify the csi-plugin configuration to enable cnfs-nas-daemon:
Locate the csi-plugin and click Configuration.
Add
AlinasMountProxy=trueto FeatureGate.After you enable this feature gate, Container Storage Interface (CSI) uses cnfs-nas-daemon for mounting.