Skip to content

Configurable behavior when resources.requests."nvidia.com/gpu" = 0 (or not set) #1596

@tomzx

Description

@tomzx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionCategorizes issue or PR as a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions