Created
November 6, 2019 22:45
-
-
Save rms1000watt/529cf68e57cf5c35db84f377db817292 to your computer and use it in GitHub Desktop.
Kubectl get all pods that are older than 1 day
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
| # https://stackoverflow.com/a/53989428 | |
| kubectl get pod | awk 'match($5,/[0-9]+d/) {print $0}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment