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

使用独占 GPU

职位描述

要分配一个独占的GPU,您只需分配volcano.sh/vgpu-number,而无需其他volcano.sh/xxx字段,如下例所示:

apiVersion: v1
kind: Pod
metadata:
name: test1
spec:
restartPolicy: OnFailure
schedulerName: volcano
containers:
- image: ubuntu:20.04
name: pod1-ctr
command: ["sleep"]
args: ["100000"]
resources:
limits:
volcano.sh/vgpu-number: 1