Created
March 24, 2025 15:49
-
-
Save lovemycodesnippets/58a8b4f7c86d854fa3630ddba4c0c9e0 to your computer and use it in GitHub Desktop.
From "Tutorial: Set up a Cloud Native GPU Testbed with nvKind Kubernetes"
This file contains hidden or 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
kubectl apply -f - <<EOF | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: cuda-vectoradd | |
spec: | |
restartPolicy: OnFailure | |
containers: | |
- name: cuda-vectoradd | |
image: "nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda11.7.1-ubuntu20.04" | |
resources: | |
limits: | |
nvidia.com/gpu: 1 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment