Kubernetes / NRI communication path
Los mantenedores suelen responder en 6 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- go, kubernetes
Línea de trabajo
Comienza con el documento de diseño enlazado y el hook NodePrepareResources() existente; después, revisa los plugins NRI requeridos, las anotaciones y CDI tal como se describen en el issue. Rastrea cómo se comunican actualmente DRA y NRI a través de kubelet y el runtime de contenedores. Se considera terminado cuando un driver puede garantizar que el callback NRI previsto se invoque para un pod específico después de reinicios del runtime, sin requerir una configuración global de containerd.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 419
- Forks
- 105
- Merge medio
- 9 d 7 h
- PR fusionados (30 d)
- 14
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de containerd/nri
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
containerd/nri#363 · 8 comentarios ·
Los mantenedores suelen responder en 6 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
containerd/nri#353 · 15 comentarios ·
Los mantenedores suelen responder en 6 días
-
[Proposal] Allow configuring request timeout per plugin instead of using a single global timeoutPosiblemente ocupada @CoderSherlock la tomó hace 118 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
containerd/nri#287 · 7 comentarios · 7 reacciones ·
Los mantenedores suelen responder en 6 días
-
v1.0 required
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
containerd/nri#273 · 2 comentarios ·
Los mantenedores suelen responder en 6 días
-
Provide basic runtime metrics for NRI pluginsPosiblemente ocupada @mikebrow la tomó hace 34 días. Abiertov1.0 required
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
containerd/nri#272 · 1 comentario ·
Los mantenedores suelen responder en 6 días
Todos los issues de containerd/nri
Issues similares
-
Project submission: SpecWithCodeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
slavakurilyak/awesome-ai-agents#1137 ·
Los mantenedores suelen responder en 1 día
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
jordansmall/spindrift#7895 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día