Skip to content

Instantly share code, notes, and snippets.

@micoli
Created September 16, 2019 05:48
Show Gist options
  • Save micoli/eacae0e2ca2f860a0d893f4146acc2eb to your computer and use it in GitHub Desktop.
Save micoli/eacae0e2ca2f860a0d893f4146acc2eb to your computer and use it in GitHub Desktop.
kubectl get pods -o json | jq -r '.items[].status.containerStatuses[].state.running.startedAt | fromdate | tostring + ""' | sort -r | head -n 1 | xargs date -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment