Kubernetes / NRI communication path
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 32/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- go, kubernetes
- Domain
- distributed-systems, infrastructure
Research direction
Start with the linked design document and the existing NodePrepareResources() hook, then review NRI required plugins, annotations, and CDI as described in the issue. Trace how DRA and NRI currently communicate across kubelet and the container runtime. Done means a driver can ensure the intended NRI callback is invoked for a specific pod after runtime restarts without requiring global containerd configuration.
Written by the indexing model from the issue text.
Description
This was found by @gauravkghildiyal , see doc with more details.
in DRANET, a DRA driver for kubernetes networking, we implement an architecture with 2 legs for the driver:
- Kubelet via DRA
- Container runtime via NRI
This architecture allow to handle complex workloads that require to execute at different stages of a pod creation. Also, this guarantees that the kubernetes system will not schedule nothing to the node until the DRA driver in the node is running, the driver can store the state in memory during the kubelet DRA NodePrepareResources() callback, and use the NRI callback to execute the actions on the Pod during the container runtime stage.
However, there is still a race in this process, if for any case the runtime is restarted, the DRA driver will not be able to notice it and the Pod can be running without the NRI call back called ... we need to ensure that a specific driver is always called for a specific pod
NRI added the concept of required plugins https://github.com/containerd/nri/pull/278 , this indicates that drivers can implement this behavior globally modifying the configuration or via annotations.
Since global is an admin option that requires changing containerd config, is hard for independent drivers to modify it, so we need to use the annotations path, however, the DRA hook in kubelet does not have a way to plumb dumb annotations (Device plugin does have)
I commented this during kubecon with NRI maintainers @klihub @kad they mentioned it should be possible to use the existing NodePrepareResources() hook to be able to use CDI to allow this functionality, but may require some work in some places to enable it.
@klihub @gauravkghildiyal @samuelkarp @chrishenzie
- Dominant language
- Go
- Stars
- 419
- Forks
- 105
- Avg merge
- 9d 7h
- Merged PRs (30d)
- 14
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containerd/nri
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
containerd/nri#363 · 8 comments ·
Maintainers usually reply within 6 days
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
containerd/nri#353 · 15 comments ·
Maintainers usually reply within 6 days
-
[Proposal] Allow configuring request timeout per plugin instead of using a single global timeoutPossibly taken @CoderSherlock claimed this 118 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 45/100
containerd/nri#287 · 7 comments · 7 reactions ·
Maintainers usually reply within 6 days
-
v1.0 required
Difficulty 5/5 Over a week Newbie friendliness 35/100
containerd/nri#273 · 2 comments ·
Maintainers usually reply within 6 days
-
Provide basic runtime metrics for NRI pluginsPossibly taken @mikebrow claimed this 33 days ago. Openv1.0 required
Difficulty 5/5 Over a week Newbie friendliness 25/100
containerd/nri#272 · 1 comment ·
Maintainers usually reply within 6 days
Similar issues
-
ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jordansmall/spindrift#7895 ·
Maintainers usually reply within 1 day
-
documentation priority: medium skill: intermediate status: ready for dev
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
hyperledger-labs/fabric-smart-client#2830 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
P3 tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day