How do you debug a node or a running Pod with ephemeral containers?
IntermediateProductionRapid-Fire Commands
Answer
kubectl debug -it web-0 --image=nicolaka/netshoot --target=app
kubectl debug web-0 -it --copy-to=web-debug --container=app --image=busybox:1.36
kubectl debug node/ip-10-0-1-5.ap-south-1.compute.internal -it --image=ubuntu
More on Rapid-Fire Commands
How do you list all Pods across namespaces with node and IP?BeginnerHow do you find why a Pod is Pending or not starting?BeginnerHow do you scale a Deployment or StatefulSet imperatively?BeginnerHow do you get a shell into a running container and run a one-off Pod?BeginnerHow do you see all resources and their short names?BeginnerHow do you generate YAML for a resource without creating it?Beginner