~/talk

Secure and Debuggable: Debugging Slim, Scratch and Distroless Kubernetes Containers

Talkat KubeDay Japan 2022 · on Wednesday, 2022-12-07· at 10:30· Level 3 | Pacific Room· [security]
links:none on file
slides:none on file

Ephemeral Containers GA (Kubernetes 1.25) enables live debugging of scratch, distroless and slim app images without rebuilding them. Demonstrations use kubectl debug and EphemeralContainers API to attach BusyBox or custom debug sidecars, copy tools into the target namespace, chroot into the process PID namespace, and inspect files under /proc. They show a Node app toggled to debug with SIGUSR1 and a breakpoint hit, plus syscall traces with netshoot, coolkit, strace — it works, though advanced mounts and securityContext require the API rather than the default kubectl debug.

AI-written summary · about

  1. 0:00Secure and debuggable containers
  2. 1:07Minimal images hard to debug
  3. 3:33Kubernetes debugging basics
  4. 5:24Scratch vs Distroless vs Slim
  5. 9:37Debugging minimal images
  6. 12:52Ephemeral containers fix
  7. 15:25Advanced pod copy debugging
  8. 17:31Ephemeral containers 1.25
  9. 18:16Debugging minimal containers
  10. 19:43Debugging node app demo
  11. 21:41Debugging with Coolkit
  12. 25:09Low-level debugging with s-trace
  13. 25:58Custom debugging images
  14. 27:20Shell tricks for debugging
  15. 29:11Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.