Generic-device-plugin can support rdma device?
Can the current project replace the https://github.com/squat/generic-device-plugin project
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
get, thanks