← Debugging375 / 640
hardkubectl

List cluster events sorted chronologically to diagnose recent failures

command

kubectl get events --sort-by .metadata.creationTimestamp

also accepted

kubectl get events --sort-by

Command breakdown

Part of the Kubernetes CLI (kubectl) — Debugging category.

kubectlgetevents--sort-by.metadata.creationTimestamp
FlagPurpose
--sort-byBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →