~/talk

Debugging python applications inside k8s environment

Talkat Python + DS fwdays'24 conference · on Saturday, 2024-04-20· [python, kubernetes]
slides:none on file

Concrete recipes and tools replace platitudes: run a debug server with debugpy + DAP, build images with an entrypoint toggle and baked git SHA, and attach from VS Code via port‑forwarding or from-cluster using kubectl debug ephemeral container. Alternatives: telnet into a pdbclone or use PUDB inside a debug sidecar. Remember to scale replicas to one, forward both app and debug ports, and use K9s for quick pod ops — these steps let a live k8s Python process be inspected and controlled rather than guessed at.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Python debugging techniques
  3. 3:59Debug Adapter Protocol
  4. 5:29Debugging with PDB
  5. 7:15Cloud-native Python challenges
  6. 8:41Remote debugging in Kubernetes
  7. 9:25VS Code and debugpy
  8. 12:16Terminal remote debugging
  9. 14:05PUD B debugging
  10. 16:54Preparing apps for debugging
  11. 17:34Debugging running pods
  12. 19:42VS Code remote demo
  13. 22:55Debugging without port forwarding
  14. 24:45Ephemeral containers
  15. 26:53Source code alignment
  16. 28:43K9s debugging tool
  17. 30:52Key takeaways
  18. 32:18Future reading and additional resources
~/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.