Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lovemycodesnippets/58a8b4f7c86d854fa3630ddba4c0c9e0 to your computer and use it in GitHub Desktop.
Save lovemycodesnippets/58a8b4f7c86d854fa3630ddba4c0c9e0 to your computer and use it in GitHub Desktop.
From "Tutorial: Set up a Cloud Native GPU Testbed with nvKind Kubernetes"
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