Skip to content

Instantly share code, notes, and snippets.

@mowings
Created September 11, 2020 16:01
Show Gist options
  • Save mowings/45ab963ada79d31e5b6209a1451243ad to your computer and use it in GitHub Desktop.
Save mowings/45ab963ada79d31e5b6209a1451243ad to your computer and use it in GitHub Desktop.
kubectl -- get pods last completion status

Useful for finding OOMKilled pods

kubectl get pods -A -o custom-columns=NAME:.metadata.name,REASON:..lastState..reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment