Skip to content

fix(kubernetes): set the GPU resource claim for GPU sandboxes - #5775

Open
ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/5759-k8s-gpu-claim/ericcurtin
Open

ericcurtin wants to merge 2 commits into
ai-openshell:mainfrom
ericcurtin:fix/5759-k8s-gpu-claim/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Kubernetes GPU sandboxes now carry the openshell.gpu claim, so the boundary allows GPU device paths.

Related Issue

Closes #5759

Changes

  • Add gpu_requested to the Kubernetes boundary spec and insert the claim when set.
  • Derive it from a non-zero nvidia.com/gpu request or limit on the agent container.

Release Notes

GPU sandboxes on the Kubernetes driver can now open /dev/nvidia*.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

cargo clippy and the GPU unit tests for openshell-driver-kubernetes pass.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@elezar @TaylorMutch PTAL when you get a chance, and /ok to test e1d3d1b2742b33310bf5686e8a2083395da360af if it looks good. Thank you!

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

Merged main to start CI. @drew @matthewgrossman PTAL, and could you please approve the workflow runs? Thank you!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kubernetes: GPU sandboxes never get the openshell.gpu resource claim, so Landlock denies /dev/nvidia* and CUDA/Vulkan init fails

1 participant