Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NRI to inject device to container #749

Open
lengrongfu opened this issue Dec 27, 2024 · 1 comment
Open

Use NRI to inject device to container #749

lengrongfu opened this issue Dec 27, 2024 · 1 comment
Labels
kind/feature new function

Comments

@lengrongfu
Copy link
Member

What would you like to be added:

Current device is scheduler pod to allocate,then write annotation;in device-plugin Allocate method Inject libvgpu.so, there are several problems with doing this:

  1. every node have a node lock, so the concurrency of node allocation device is 1.
  2. The current implementation method will cause confusion in pod resource allocation, and the set resources will be inconsistent with the actual ones.
  3. requires frequent interaction with kube-apiserver

We can implement an NRI plugin in the device-plugin component and use NRI to inject devices, which can solve the three problems mentioned above.

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

@lengrongfu lengrongfu added the kind/feature new function label Dec 27, 2024
@lengrongfu
Copy link
Member Author

The initial idea is that we can let users decide whether to use device-plugin or NRI to inject the device through a parameter.

@lengrongfu lengrongfu reopened this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature new function
Projects
None yet
Development

No branches or pull requests

1 participant