Created
April 1, 2023 22:07
-
-
Save alhafoudh/b749276524bac4829b0d1fc9d34f958d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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