Detect OOMKilled containers k8s-debug

List pods whose last container exit was OOMKilled across all namespaces

kubectl get po -A -o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{" "}{.status.containerStatuses[*].lastState.terminated.reason}{"\n"}{end}' | grep OOMKilled
more k8s-debug all 27 commands →