-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[k8s][docs] Clarify
nvidia
runtime is required for k8s (#2957)
* RKE2 instructions * GPU test pod
- Loading branch information
1 parent
a31fdd9
commit 1e53317
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Runs nvidia-smi in a pod to test GPU operator and nvidia runtime are setup correctly | ||
# Run with kubectl apply -f gpu_pod_test.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nvidia-smi | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: nvidia-smi | ||
image: nvidia/cuda:12.3.1-devel-ubuntu20.04 | ||
command: ["nvidia-smi"] | ||
resources: | ||
limits: | ||
nvidia.com/gpu: "1" |