If containerd is integrated with Kubernetes, you need to install Ascend Docker Runtime.
apiVersion: mindxdl.gitee.com/v1
kind: xxx
...
spec:
...
spec:
...
containers:
- name: ascend
image: pytorch-test:latest # Modify the image name as required.
...
resources:
limits:
huawei.com/Ascend910: 1 #Modify the resource name and quantity as required.
requests:
huawei.com/Ascend910: 1 #Modify the resource name and quantity as required.
...
apiVersion: mindxdl.gitee.com/v1
kind: xxx
...
spec:
...
spec:
...
containers:
- name: ascend
image: pytorch-test:latest # Modify the image name as required.
...
env:
- name: ASCEND_VISIBLE_DEVICES # Add this configuration when NPU resources are not allocated by resources.
value: "void"
...