NVIDIA / k8s-device-plugin

NVIDIA device plugin for Kubernetes
Apache License 2.0
2.45k stars 573 forks source link

Adding support to populate node labels when GPUs are configured for passthrough #676

Closed visheshtanksale closed 2 weeks ago

visheshtanksale commented 3 weeks ago

Adding support to populate node labels when GPUs are configured for passthrough GFD does not populate GPU related node labels in passthrough mode because it reads GPU details from NVML. This PR adds support to read GPU details from sysfs when GPU are configured for passthrough

To Do: Adding unit tests

visheshtanksale commented 2 weeks ago

PR looks in good shape now, but could be squash the commits, there are 6 commits with the same title, and all for review comments, also edit PR description to provide some context, not a JIRA link.

Thanks

@ArangoGutierrez Squashed the commits and edited PR description.