Sort Kubernetes pods by age
Sorts all Kubernetes pods by the pod's start time. To sort by the pod's creation time, specify `.metadata.creationTimestamp` as the value for `--sort-by`.
Authored by: vjdhamaBrought to you by Warp, a free terminal reimagined to work like a modern app.
Command
Copy
kubectl get po --sort-by=.status.startTime
Tags
Edit in GitHub
Copied