kubectl Cheats for Incident Response

20 kubectl one-liners for incident response. Each with a real use case and what it catches.

Describe and get

describe is the first investigation tool because it surfaces events that get quietly hides. CrashLoopBackOff, ImagePullBackOff, FailedScheduling: the explanation is in the event stream, not the pod status. Reach for describe before logs, before exec, before anything else.

Logs

Logs is the daily debugging surface and the four switches below cover most incident-response use. Follow, scope by time, read the previous container after a crash, aggregate across replicas.

Exec carefully

exec is the last-resort tool. Useful when nothing else gives a clear answer, but it leaves no audit trail by default and any side effects are invisible to the next responder. Use sparingly and document every invocation.