You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several approaches to extending the Kubernetes CRI (Container Runtime Interface) to manage container resources (e.g. adjust the cpuset of a container).
Instead of modifying the CRI request, NRI offers us a new way to manager container resources by adjusting OCI-spec.
NRI API
The Runtime service is the public interface runtimes expose for NRI plugins. All requests on this interface are initiated by the plugin. The interface provides functions for
initiating plugin registration
requesting unsolicited updates to containers
The Plugin service is the public interface NRI uses to interact with plugins. All requests on this interface are initiated by NRI/the runtime. The interface provides functions for
configuring the plugin
getting initial list of already existing pods and containers
hooking the plugin into pod/container lifecycle events
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In this talk, we discuss why and how the Node Resource Interface (NRI) could be used in Koordinator.
NRI Introduction
Overview
There are several approaches to extending the Kubernetes CRI (Container Runtime Interface) to manage container resources (e.g. adjust the cpuset of a container).
Instead of modifying the CRI request, NRI offers us a new way to manager container resources by adjusting OCI-spec.
NRI API
Metadata
Managed Resources
LinuxResources
LinuxDevices
Subscriptable Events
How-To Access
There are two ways to access NRI:
/opt/nri/plugins
./var/run/nri/nri.sock
.NRI on Koordinator
Access NRI
Add a Koord NRI Plugin for
Workflow
... --> CRI Runtime - OCI Spec -> NRI Adaption --> Koord NRI Plugin - OCI Spec (adjusted) -> ...
vs. Koord Runtime Proxy
if FatalError(err) { plugin.close() } else abort
) https://github.com/containerd/nri/blob/v0.3.0/pkg/adaptation/adaptation.go#L290Beta Was this translation helpful? Give feedback.
All reactions