Configuring the GPU Driver Version Using a Node Label
If you need to configure a differentiated driver for a node, you can add a specific label to the node and define a driver policy in the ConfigMap to configure a custom refined node-level driver.
Constraints
Ensure that CCE AI Suite (NVIDIA GPU) has been installed or upgraded to 2.13.1 or later.
Procedure
- Install or edit CCE AI Suite (NVIDIA GPU) using YAML.
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Add-ons. In the right pane, find CCE AI Suite (NVIDIA GPU) and click Edit. Click Edit YAML.
If you install this add-on for the first time, find CCE AI Suite (NVIDIA GPU) in the right pane and click Install. Click Installation Using YAML.
- Edit the YAML file, add the following information to specify the node label name, and click Submit.
node_level_driver_label_name: <your-label-name>
For example, set the label name to gpu.type.

- Configure the node label.
- In the navigation pane, choose Nodes. On the displayed page, click the Nodes tab.
- Locate the target node and choose More > Manage Labels in the Operation column.
- In the Manage Labels dialog box, click Add.
- Enter the label name (for example, gpu.type) set in 1 and a custom label value (for example, 535.216.03). Click OK.

- Create a custom driver download address for the specified label value.
- Use kubectl to access the cluster. For details, see Accessing a Cluster Using kubectl.
- Edit the ConfigMap in the kube-system namespace.
kubectl edit cm -n kube-system huawei-gpu-driver-config
- On the editing page, find the data field and add a new key-value pair in the following format:
custom_<label-value>: <driver-download-address>
In this example, the label value is 535.216.03. For details about the driver download address, see CCE AI Suite (NVIDIA GPU).

- Save the modification and exit the editor.
- Check whether the ConfigMap has been updated.
kubectl get cm -n kube-system huawei-gpu-driver-config -o yaml
Check whether the command output contains the custom_< label-value> field and the driver download address.
- Restart the node and check the new driver.
- Restart the node.
sudo reboot
- Log in to the node again after the node is restarted.
- Check whether the driver has been installed and is running normally.
nvidia-smi
Confirm that the driver version displayed in the command output is the target version.
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 535.216.03 Driver Version: 535.216.03 CUDA Version: 12.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
- Restart the node.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot