Debugging with Ephemeral Containers

Ephemeral containers are a beta feature landing with Kubernetes v1.23.

These special containers allow for easier debugging of pods/containers, especially if you use “distroless images”, which only contain your application and runtime dependencies. In those cases, you usually wouldn’t even be able to get a shell via kubectl exec.

This presentation will show how to use kubectl debug, which allows Kubernetes users to spin up these special containers to inspect the state of a failing container. We’ll also show how to enable process namespace sharing to gain deeper visibility into the failing pod.



Peter Valdez

Peter is an engineer, and co-founder of Shipyard (, development environments for devs, product, & QA). Born and raised in NYC, Peter has long been interested in tech at ...