Skip to content

Commit

Permalink
Update/gpu-shell-command
Browse files Browse the repository at this point in the history
  • Loading branch information
paul2126 authored Dec 17, 2024
1 parent 8a7b991 commit 9fc14ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/usage/run-workload-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ will be **irrecoverably lost** if the PersistentVolumeClaim is deleted.

Use this example to spawn an ephemeral shell with access to GPU resources.

(Reminder)

The example GPU shell will **auto terminate after 25 minutes, DO NOT** use for consistent workloads.

```yaml
# gpu-shell.yaml
apiVersion: v1
Expand All @@ -144,7 +148,7 @@ spec:
containers:
- name: app
image: nvcr.io/nvidia/cuda:12.5.0-base-ubuntu22.04
command: ['/bin/bash', '-c', 'sleep inf']
command: ['/bin/bash', '-c', 'sleep 1500 && echo "Time expired. Exiting..." && exit']
resources:
limits:
nvidia.com/gpu: 4
Expand Down

0 comments on commit 9fc14ea

Please sign in to comment.