-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kube play support for CDI resource allocation #25010
Conversation
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: containers#17833 Signed-off-by: Robert Günzler <[email protected]>
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @robertgzr |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bachp, giuseppe, robertgzr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ec6b035
into
containers:main
@rhatdan @giuseppe where should this be documented? i guess i would look for it somewhere here: https://docs.podman.io/en/latest/markdown/podman-kube-play.1.html |
Yes document it in the man page in docs/source/markdown/podman-kube-play.1.md.in |
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 pathsas names and is transparently translated to mimick --device. This allows
bringing arbitrary devices into the container via similar, although
incompatible with, k8s mechanics:
Fixes: #17833
Signed-off-by: Robert Günzler [email protected]