FahamLah

Commands

kubectl debug -it

kubectl debug -it <pod> --image=busybox:1.37 [--target=container]

Risk: Careful

What it does

Adds a temporary debug container to a pod, with your own tools.

When to use it

The app image has no shell or tools.

Example

$ kubectl debug -it tray --image=busybox:1.37 --target=web

Bring a toolbox into the tray.