All Articles

Kubectl Sort Events By Time

All Namespaces

kubectl get events --sort-by='.metadata.creationTimestamp' -A

Single Namespace

kubectl get events --sort-by='.metadata.creationTimestamp' -n apic

Cheers!

Source: LinuxHint