Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created November 6, 2019 22:45
Show Gist options
  • Save rms1000watt/529cf68e57cf5c35db84f377db817292 to your computer and use it in GitHub Desktop.
Save rms1000watt/529cf68e57cf5c35db84f377db817292 to your computer and use it in GitHub Desktop.
Kubectl get all pods that are older than 1 day
# 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