kubectl get events --sort-by=.lastTimestamp

Category: Kubernetes & Containers

kubectl get events --sort-by=.lastTimestamp

List events newest first

Prints cluster events, such as pod scheduling failures and image pulls, sorted so the most recent appear last. Events are the first place to look when a pod is stuck or crash-looping. Narrow them with kubectl get events --field-selector involvedObject.name=web-7d8f9c.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.