You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): support explicit CDI device names via --gpu
Explicit CDI device IDs can now be passed:
--gpu=nvidia.com/gpu=all single CDI device
--gpu=nvidia.com/gpu=0 --gpu=nvidia.com/gpu=1 multiple CDI devices
parse_gpu_flag validates the input and rejects mixing legacy/auto with
CDI device names or specifying them more than once.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
|`--gpu=<cdi-device>`| Inject a specific CDI device (e.g. `nvidia.com/gpu=all`). May be repeated for multiple devices. Note: because the cluster container runs privileged, device-level isolation may not work as expected. |
328
+
329
+
Mixing `legacy` or auto-select with explicit CDI device names in the same invocation is an error.
327
330
328
331
The expected smoke test is a plain pod requesting `nvidia.com/gpu: 1` with `runtimeClassName: nvidia` and running `nvidia-smi`.
Copy file name to clipboardExpand all lines: docs/sandboxes/manage-gateways.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ $ openshell gateway info --name my-remote-cluster
168
168
169
169
| Flag | Purpose |
170
170
|---|---|
171
-
|`--gpu`| Enable NVIDIA GPU passthrough. Requires NVIDIA drivers and the Container Toolkit on the host. Accepts an optional value: omit for auto-select (CDI on Docker >= 28.2.0, `--gpus all` otherwise), or `--gpu=legacy` to force `--gpus all`. |
171
+
|`--gpu`| Enable NVIDIA GPU passthrough. Requires NVIDIA drivers and the Container Toolkit on the host. Accepts an optional value: omit for auto-select (CDI on Docker >= 28.2.0, `--gpus all` otherwise), `--gpu=legacy` to force `--gpus all`, or `--gpu=<cdi-device>` to inject a specific CDI device (e.g. `nvidia.com/gpu=all`). May be repeated for multiple CDI devices. |
172
172
|`--plaintext`| Listen on HTTP instead of mTLS. Use behind a TLS-terminating reverse proxy. |
173
173
|`--disable-gateway-auth`| Skip mTLS client certificate checks. Use when a reverse proxy cannot forward client certs. |
174
174
|`--registry-username`| Username for registry authentication. Defaults to `__token__` when `--registry-token` is set. Only needed for private registries. Also configurable with `OPENSHELL_REGISTRY_USERNAME`. |
0 commit comments