kubectl: Cheat sheet

November 7, 2019 - Last updated: February 14, 2020

Delete all pods from a single namespace

kubectl delete --all pods --namespace <namespace>

Get all events from a pod

kubectl get event --namespace <namespace> --field-selector involvedObject.name=<pod-name>