Check resource requests/limits k8s-debug
Show resource requests and limits for each container
kubectl get pod mypod -o jsonpath='{range .spec.containers[*]}{.name}{"\t"}{.resources}{"\n"}{end}'
more k8s-debug
all 27 commands →
Describe node conditions
kubectl describe node my-node | grep -A5 'Conditions:'
Find pods by resource usage
kubectl top pods -A --sort-by=memory | head -20
Watch pod events
kubectl get events -n mynamespace --field-selector involvedObject.name=mypod --watch
Copy file from pod
kubectl cp mynamespace/mypod:/var/log/app.log ./app.log
Top pods by restart count
kubectl get po -A --sort-by='.status.containerStatuses[0].restartCount' | tail -20