OnCallReady

Commands

oc debug - Launch a new instance of a pod for debugging

oc debug (POD | TYPE/NAME | node/NODE) [-- COMMAND]

Options you will use

node/NODE
a privileged host pod in a temporary openshift-debug-* namespace, / mounted at /host
-- COMMAND
run one command and exit

Examples

$ oc debug node/worker-1

then: chroot /host; crictl ps; journalctl -u kubelet

$ oc debug deploy/web

a copy of the pod with sh as the command (for crash-looping images)

Gotchas

Taught in

Try oc debug in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.