Debugging python applications inside k8s environment
summary
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
chapters (18)
- 0:00Introduction
- 1:07Python debugging techniques
- 3:59Debug Adapter Protocol
- 5:29Debugging with PDB
- 7:15Cloud-native Python challenges
- 8:41Remote debugging in Kubernetes
- 9:25VS Code and debugpy
- 12:16Terminal remote debugging
- 14:05PUD B debugging
- 16:54Preparing apps for debugging
- 17:34Debugging running pods
- 19:42VS Code remote demo
- 22:55Debugging without port forwarding
- 24:45Ephemeral containers
- 26:53Source code alignment
- 28:43K9s debugging tool
- 30:52Key takeaways
- 32:18Future reading and additional resources
related talks
39mDebugging python applications inside k8s environment
25mLive process manipulation with Python 3.14's zero overhead debugging interface
34mDebugging at Scale in Production - Deep into Your Containers with Kubectl Debug
40mDebugging in Golang Apps Inside K8s Environment
35mThe Art of Debugging Inside K8s Environment
24mDebugging at Scale in Production - Deep into your Containers
12mDebugging Python in Production: Practical Techniques Beyond Print Statements
01h 00mDebug like a pro on Kubernetes
