Skip to content

Instantly share code, notes, and snippets.

@alhafoudh
Created April 1, 2023 22:07
Show Gist options
  • Save alhafoudh/b749276524bac4829b0d1fc9d34f958d to your computer and use it in GitHub Desktop.
Save alhafoudh/b749276524bac4829b0d1fc9d34f958d to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Pod
metadata:
name: gpu-test
namespace: default
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
containers:
- name: gpu-test
image: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
imagePullPolicy: Always
command: ["/bin/bash", "-c", "--"]
args: ["while true; do sleep 5; done;"]
resources:
limits:
nvidia.com/gpu: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment