Skip to content
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

Generic-device-plugin can support rdma device? #69

Open
ppancake opened this issue Jan 10, 2025 · 2 comments
Open

Generic-device-plugin can support rdma device? #69

ppancake opened this issue Jan 10, 2025 · 2 comments

Comments

@ppancake
Copy link

Can the current project replace the https://github.com/squat/generic-device-plugin project

@squat
Copy link
Owner

squat commented Jan 15, 2025

Do you mean if this project can replace https://github.com/hustcat/k8s-rdma-device-plugin?
This project is aimed at letting you mount anything under /dev into a pod, without giving that pod the privileged setting.

If the device you want to mount is anything that looks like a file at /dev (or any other mount point in the file-system) then this project can probably get it mounted into a pod.

This project is specifically not geared towards doing anything domain-specific, e.g. it will not include any special logic for discovering a infiniband devices.

However, you can use this to discover all infiniband devices under /dev/infiniband/.* as well as all infiniband class devices under /sys/class/infiniband/*/device and always mount them together into a container.

For something similar to that, take a look at the example for mounting sound capture devices: https://github.com/squat/generic-device-plugin/blob/main/manifests/generic-device-plugin.yaml#L62-L83

@ppancake
Copy link
Author

get, thanks

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

No branches or pull requests

2 participants