Specify device UUID

To assign a task to certain Ascend devices, set hami.io/use-<CommonWord>-uuid in the pod annotations.

For example, if the workload requests huawei.com/Ascend910B4, use hami.io/use-Ascend910B4-uuid:

apiVersion: v1
kind: Pod
metadata:
  name: ascend-pod
  annotations:
    hami.io/use-Ascend910B4-uuid: "79A12A6C-012049B3-214CD433-808080E0-104301E3"
spec:
  containers:
    - name: ubuntu-container
      image: ascendai/pytorch:ubuntu-python3.8-cann8.0.rc1.beta1-pytorch2.1.0
      command: ["bash", "-c", "sleep 86400"]
      resources:
        limits:
          huawei.com/Ascend910B4: 1
          huawei.com/Ascend910B4-memory: 8192

To exclude certain Ascend devices, set hami.io/no-use-<CommonWord>-uuid:

apiVersion: v1
kind: Pod
metadata:
  name: ascend-pod-exclude
  annotations:
    hami.io/no-use-Ascend910B4-uuid: "79A12A6C-012049B3-214CD433-808080E0-104301E3"
spec:
  containers:
    - name: ubuntu-container
      image: ascendai/pytorch:ubuntu-python3.8-cann8.0.rc1.beta1-pytorch2.1.0
      command: ["bash", "-c", "sleep 86400"]
      resources:
        limits:
          huawei.com/Ascend910B4: 1
          huawei.com/Ascend910B4-memory: 8192

NOTICE: The annotation suffix must match the requested resource type. For example, huawei.com/Ascend910B4 uses hami.io/use-Ascend910B4-uuid and hami.io/no-use-Ascend910B4-uuid.

NOTICE: These UUIDs are published by HAMi in node annotations such as hami.io/node-register-Ascend910B4. They may not appear in npu-smi info output.