Skip to content

Commit

Permalink
Update/gpu-shell-command (#12)
Browse files Browse the repository at this point in the history
* Update/gpu-shell-command

* Update docs/src/usage/run-workload-examples.md

Co-authored-by: Yongun Seong <[email protected]>

* Update docs/src/usage/run-workload-examples.md

Co-authored-by: Yongun Seong <[email protected]>

---------

Co-authored-by: Yongun Seong <[email protected]>
  • Loading branch information
paul2126 and nevivurn authored Dec 18, 2024
1 parent 2e0d022 commit d64faed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,11 @@ will be **irrecoverably lost** if the PersistentVolumeClaim is deleted.

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

<div class="warning">

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

```yaml
# gpu-shell.yaml
apiVersion: v1
Expand All @@ -144,7 +149,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 d64faed

Please sign in to comment.