kubectl describe

The kubectl command that prints a readable summary of an object: its settings, current status and recent events.

In more detail

Where get shows state, describe also shows transitions, which is why it opens nearly every diagnosis. The Events section at the bottom usually names the first thing that went wrong. Collect it before changing anything, because events expire.

Example

kubectl describe pod web | sed -n '/Events:/,$p'

Related terms

Taught in

References

Certification courses