youtube image
From YouTube: Who Needs an API Server to Debug a Kubernetes Cluster? - Jose Blanquicet, Microsoft

Description

Don’t miss out! Join us at our upcoming event: KubeCon + CloudNativeCon Europe 2023 in Amsterdam, The Netherlands from April 17-21. Learn more at https://kubecon.io​. The conference features presentations from developers and end users of Kubernetes, Prometheus, Envoy, and all of the other CNCF-hosted projects.

Who Needs an API Server to Debug a Kubernetes Cluster? - Jose Blanquicet, Microsoft

How would you debug your Kubernetes cluster if the API server goes down but you still have access to the nodes? You are probably thinking of using commands like ss/netstat, tcpdump or any of the BCC tools directly on the node, right? Well, the problem with all those options is that they do not have knowledge of Kubernetes, so you still have to map the PIDs to containers and then to pods. It could sound easy, but it is pretty tricky. So, if you want to focus on the actual issue and skip all this low-level stuff, this talk is for you!
In this talk, Jose will demonstrate how you can trace the container's events like the creation of new processes, access to files, network and disk activity, if you still have access to the node. To do that, he will use Local-Gadget, an eBPF-powered open-source project that provides a global view of all the containers running in a host and gives the possibility of running essential eBPF tools, or "gadgets", to debug your standalone container or your Kubernetes application without using the API Server. In addition, Jose will show how to take advantage of the framework already created by Local-Gadget from 3rd-party applications.