Show oldest to newest event timestamps for a namespace.
Section: Events and Conditions
Sort events by time
bash
bash
kubectl get events -n <namespace> --sort-by=.metadata.creationTimestampLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Events and Conditions
Sort cluster-wide events by time
Helpful for cluster-wide incident triage.
Wait for pod readiness
Use readiness conditions to gate troubleshooting steps or scripts.