Ordered events for a pod k8s-debug
Stream only Warning events scoped to one pod in chronological order; modern: replaces get events filter
kubectl events --for pod/<pod> -n <ns> --types=Warning
more k8s-debug
all 27 commands →
Previous crash logs with timestamps
kubectl logs <pod> -n <ns> -c <name> --previous --timestamps --tail=200
Ephemeral debug container
kubectl debug -it <pod> --image=nicolaka/netshoot -n <ns>
Node resource usage
kubectl top nodes
Pod resource usage sorted
kubectl top pods -A --sort-by=memory
Check what's in a ConfigMap
kubectl get cm <name> -n <ns> -o jsonpath='{.data}'