Interview Prep/Kubernetes/Observability & Day-2 Operations

What is the best way to troubleshoot a Pod that has no shell or tools?

IntermediateProductionObservability & Day-2 Operations
Answer

Use an ephemeral debug container sharing the target's process namespace: kubectl debug -it web-0 --image=nicolaka/netshoot --target=app. For node-level issues kubectl debug node/ip-10-0-1-5 -it --image=ubuntu mounts the host filesystem at /host. Distroless images are safe yet debuggable this way.

All Kubernetes questions

More on Observability & Day-2 Operations