generic-device-plugin icon indicating copy to clipboard operation
generic-device-plugin copied to clipboard

Generic-device-plugin can support rdma device?

Open ppancake opened this issue 1 year ago • 2 comments

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

ppancake avatar Jan 10 '25 03:01 ppancake

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

squat avatar Jan 15 '25 23:01 squat

get, thanks

ppancake avatar Jan 16 '25 07:01 ppancake