Installation
TOC
PrerequisitesOnline InstallationOffline InstallationProcedureDownloading PackagesUploading PackagesInstalling the Node Feature Discovery Cluster PluginInstalling the Alauda Build of NPU OperatorVerificationInstalling MonitorFAQWhat should I pay attention to when uninstalling Alauda Build of NPU Operator?Prerequisites
Online Installation
-
ACP version: v4.0 or later
-
Cluster administrator access to your ACP cluster
-
Ensure that the bash tool exists in the NPU node. Otherwise, the driver and firmware installation script may fail to be parsed.
-
Worker Node Operating System Requirements
-
Worker nodes (or node groups) running NPU workloads must use one of the following operating systems (Arm architecture):
openEuler 22.03 LTSUbuntu 22.04
-
Worker nodes running CPU workloads only can use any operating system, as the NPU operator performs no configuration on nodes without NPU workloads.
-
-
Supported NPU Hardware
-
Nodes must use supported NPUs:
Ascend 910BAscend 310P
-
For detailed OS and hardware compatibility, see MindCluster Documentation
-
-
The
Alauda Build of Node Feature Discoverycluster plugin must be installed.
Offline Installation
-
Offline installation requires all online installation prerequisites plus additional preparation steps.
-
Prepare the driver and firmware package and the MindIO SDK package. Download the following packages (if you do not need to install MindIO, then you do not need to download the MindIO package):
- For the driver and firmware package, find the
config.jsonfile in the GitCode repository of the npu-driver-installer, and download the package based on the version you want to choose, the NPU model and OS architecture of the corresponding node through the corresponding link provided. - For the MindIO SDK package, find the
config.jsonfile in the GitCode repository of the npu-node-provision, and download the SDK package based on the NPU model and OS architecture of the corresponding node through the corresponding link provided.
- For the driver and firmware package, find the
-
Save the ZIP file of the driver and firmware package to the
/tmp/driver_pkg/path of the node where the offline installation is to be performed. -
Save the ZIP file of the MindIO package to the
/opt/openFuyao/mindio/path of the node where the offline installation is to be performed. (If you do not need to install MindIO, skip this step.) -
Check whether the target node contains the following tools.
- For systems using Yum as the package manager, the following package needs to be installed: "jq wget unzip which net-tools pciutils gcc make kernel-devel-$(uname-r) kernel-headers-(uname-r) dkms".
- For systems using apt-get as the package manager, the following package needs to be installed: "jq wget unzip debianutils net-tools pciutils gcc make dkms linux-headers-$(uname -r)".
- For systems using DNF as the package manager, the following package needs to be installed: "jq wget unzip which net-tools pciutils gcc make kernel-devel-$(uname -r) kernel-headers-(uname-r) dkms".
Procedure
Downloading Packages
From the Marketplace on the Customer Portal website, download both:
- The Alauda Build of NPU Operator operator package (delivered as an OLM OperatorBundle).
- The Alauda Build of Node Feature Discovery cluster plugin package.
- (Optional) The Volcano cluster plugin package — only needed if you plan to enable the ClusterD component during deployment.
Uploading Packages
The platform provides the violet command-line tool for uploading both operator packages and cluster plugin packages downloaded from the Customer Portal Marketplace.
For details, see Upload Packages.
Installing the Node Feature Discovery Cluster Plugin
Alauda Build of Node Feature Discovery is a cluster plugin, not an operator. Install it first because the NPU Operator depends on its node labelling.
- Navigate to Administrator > Marketplace > Cluster Plugins.
- Switch to the target cluster.
- Locate Alauda Build of Node Feature Discovery and click Install.
The Volcano cluster plugin can be left uninstalled for now. Install it from the same Cluster Plugins page only if you later enable the ClusterD component of the NPU Operator.
Installing the Alauda Build of NPU Operator
Alauda Build of NPU Operator is delivered as an operator (OLM bundle), so the install flow is the OperatorHub flow, not the Cluster Plugins flow.
-
Apply the label
masterselector=dls-master-nodeto all master nodes and the labelworkerselector=dls-worker-nodeto all worker nodes. -
Navigate to Administrator > Marketplace > OperatorHub, switch to the target cluster, and locate the Alauda Build of NPU Operator entry.
-
If the status is Absent, confirm the operator package was uploaded with
violetin the previous step. -
Click the operator to open its details page, then click Install.
-
On the install page, choose the target namespace (the default is
npu-operator; all pods managed by this operator will land here) and fill in the deployment form below. Click Install to start; confirm in the dialog and wait for the subscription to reach Succeeded.Deployment form parameter description:
WARNINGIf the components listed in the table below are already installed, be sure to disable the corresponding buttons during deployment.
TIPAscend Operator, NodeD, ClusterD, Resilience Controller, MindIO TFT, and MindIO ACP are not deployed by default. Please deploy them only when there is a clear need for them.
NOTEAll pods created by the operator (driver, device plugin, docker runtime, NPU exporter, Ascend Operator, NodeD, ClusterD, Resilience Controller, MindIO TFT, MindIO ACP, NPU Feature Discovery, and the operator itself) are deployed into the same namespace as the operator pod (the default is
npu-operator). Volcano-related components (vc-controller / vc-scheduler) are intentionally not exposed in this form — the platform's own Volcano cluster plugin should be installed separately when ClusterD is enabled.
Verification
-
On the Administrator > Marketplace > OperatorHub details page of Alauda Build of NPU Operator, the subscription status should be Succeeded. The corresponding CSV (
npu-operator.v<version>) appears under Installed Operators in the target namespace. -
Wait for the npu-driver pod to become running. Offline installation takes about 10 minutes, while online installation is much faster.
NOTEReplace
npu-operatorwith the namespace you chose during installation if you installed the operator into a different namespace. All pods managed by the operator share this namespace. -
Reboot all the NPU nodes.
-
Run the following command on the npu node.
Make sure the display is working correctly.
-
Run the following command on the master node.
Make sure the status of the
npuclusterpolicyis Ready. -
Check whether there are allocatable NPU resources on the NPU node in the control node of the business cluster. Run the following command:
-
Run validation workload. Create spec file:
Apply spec:
Then run the following command in the container:
Make sure the display is working correctly.
Installing Monitor
If the NPU Exporter component was deployed when installing the Alauda Build of NPU Operator, perform the following steps to create a monitoring panel.
-
The operator automatically deploys a
ServiceMonitornamednpu-exporter-servicemonitorin the operator namespace, wired up to thenpu-exporterService. No manualServiceMonitorcreation is required. You can verify it with: -
You can import a Grafana dashboard JSON file by following Import Dashboard, which converts it into a monitoring dashboard for display. The JSON file is available in ascend-npu-dashboard.
NOTETags in the Grafana dashboard JSON file cannot contain Chinese characters and need to be manually deleted. For examples:
After modification:
FAQ
What should I pay attention to when uninstalling Alauda Build of NPU Operator?
Even after Alauda Build of NPU Operator is uninstalled, the driver may still exist on the host machine. On the NPU node, execute the following command to uninstall the driver: