In the documentation/README one can read:
If you do not request GPUs when you use the device plugin, the plugin exposes all the GPUs on the machine inside your container.
Would it be possible to make this behavior configurable?
As in, either all GPUs are visible by default, or none are.
Many on my team have as expectation that submit a kubernetes workload with no GPU requests should result in no GPU being visible by default.
It seems that the current implementation has decided the opposite made more sense but it's not clear to us why.
Furthermore, it appears that the DGCM exporter doesn't work properly if a container does not request GPUs and no metrics are exported.
References