卸载

卸载 Alauda Build of NPU Operator 会移除由产品管理的控制器和 NPU 组件,但不会自动使现有工作负载能够移植到非 NPU 节点。

本页中的命令使用默认的 Operator 命名空间 npu-operator。如果 Operator 安装在其他命名空间中,请将 npu-operator 替换为该命名空间。

卸载前

  1. 停止或迁移请求 NPU 资源的工作负载,例如 huawei.com/Ascend910、huawei.com/Ascend310P,或已安装设备插件报告的其他 huawei.com/Ascend* 键。
  2. 记录当前的 NPUOperatorCtl YAML。
  3. 检查主机驱动程序是由 operator 管理,还是在 operator 外部安装。
  4. 检查是否应保留 ACP 配额元数据或仪表板,以便稍后重新安装。

卸载流程

  1. 删除 NPUOperatorCtl 实例。
  2. 等待由产品管理的 DaemonSet 和 pod 被移除。
  3. 从 OperatorHub 卸载 Alauda Build of NPU Operator。
  4. 仅在确认没有其他产品依赖这些节点标签后,移除 NPU 特定的节点标签。
  5. 如果不再使用,移除产品专用的仪表板或告警。

驱动程序清理

移除由 operator 管理的驱动程序 pod 后,已在主机上加载的内核模块可能会继续保持加载状态,直到节点重新启动。要从主机中完全清除驱动程序状态,请计划在卸载后重新启动节点。

除非您的运维计划明确负责该驱动程序的生命周期,否则不要手动移除供应商驱动程序文件或固件。

验证卸载

kubectl -n npu-operator get pods
kubectl -n kube-system get daemonset ascend-device-plugin --ignore-not-found
kubectl -n npu-exporter get daemonset npu-exporter --ignore-not-found
kubectl -n npu-exporter get servicemonitor npu-exporter-servicemonitor --ignore-not-found
kubectl -n mindx-dl get deployment ascend-operator-manager clusterd resilience-controller --ignore-not-found
kubectl -n mindx-dl get daemonset noded --ignore-not-found
kubectl -n default get daemonset mindio-tft mindio-acp --ignore-not-found
kubectl get node ${nodeName} -o jsonpath='{.status.allocatable}'

所有组件命名空间中的产品工作负载都应已移除。移除 Device Plugin 并由 kubelet 报告更新后的节点状态后,NPU 可分配资源应会消失。