跳转到文档内容
版本:下一个

分配独占设备

要分配整个 Ascend 设备,只需设置对应的 resourceName(如 huawei.com/Ascend910Bhuawei.com/Ascend310P),不需要指定显存资源。

apiVersion: v1
kind: Pod
metadata:
name: gpu-pod1
spec:
runtimeClassName: ascend
containers:
- name: ubuntu-container
image: ascendhub.huawei.com/public-ascendhub/ascend-mindspore:23.0.RC3-centos7
command: ["bash", "-c", "sleep 86400"]
resources:
limits:
huawei.com/Ascend910B: 2 # 请求 2 个完整的 Ascend 910B 设备
CNCFHAMi 是 CNCF Sandbox 项目