跳转到文档内容
版本:v2.6.0

分配独占设备

分配独占设备

要分配整个Metax GPU设备,您只需为容器申请 metax-tech.com/sgpu 资源。

apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
spec:
containers:
- name: ubuntu-container
image: ubuntu:22.04
imagePullPolicy: IfNotPresent
command: ["sleep","infinity"]
resources:
limits:
metax-tech.com/sgpu: 1 # requesting 1 exclusive GPU