Created
August 27, 2018 16:10
-
-
Save rbtr/43bb60874f67443ea909b6d56537d242 to your computer and use it in GitHub Desktop.
sort kubernetes nodes by age
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime" |
Thank you for sharing this! Still valid :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one works also:
kgn --sort-by=.metadata.creationTimestamp