Get the latest tech news
eBPF: Connecting with Container Runtimes
Objective - to understand how connection with Container Runtime (CR) is being made using Container Runtime Interface (CRI) in different open-source eBPF-based projects. - to query pod or container info for context enrichment.
locate unix-socket file make a grpc connection using CRI API query the info In projects that I explored, well-known paths are hardcoded for flexibility. During runtime, code iterate over these paths, tries to make a connection and returns the corresponding service, if it was success.
Or read this on Hacker News