-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kube play support for CDI resource allocation
We now handle CDI qualified names being passed to resources.limits. The support for that was already in libpod as of ab7f609 when passed via the devices list. this just hooks the kube yaml parser up to it. Additionally we introduce `podman.io/device` that accepts device paths as names and is transparently translated to mimick --device. This allows bringing arbitrary devices into the container via similar, although incompatible with, k8s mechanics: ```yaml resources: requests: podman.io/device=/dev/kmsg: 1 ``` Fixes: #17833 Signed-off-by: Robert Günzler <r@gnzler.io>
- Loading branch information
Showing
2 changed files
with
149 additions
and
26 deletions.
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