Skip to main content
Version: v1.3.0

Assign task to mig instance

This example will allocate 2g.10gb * 2 for A100-40GB-PCIE device or 1g.10gb * 2 for A100-80GB-XSM device.

apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
annotations:
nvidia.com/vgpu-mode: "mig"
hami.io/gpu-scheduler-policy: "binpack" #(Optional)
spec:
containers:
- name: ubuntu-container
image: ubuntu:18.04
command: ["bash", "-c", "sleep 86400"]
resources:
limits:
nvidia.com/gpu: 2
nvidia.com/gpumem: 8000