Kubernetes Troubleshooting Cheatsheet


K9s provides a terminal UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your applications in the wild. K9s continually watches Kubernetes for changes and offers subsequent commands to interact with your observed resources.


View the logs for Kubernetes pods. It's supported to monitor all pods for given Deployment, Statefulset or other resources. Especially in some case that pod is restarted or scale in or out, kubectl logs will exit, while kail will detect the latest change and put new pods under monitoring.


kubectl run -it --rm --restart=Never busybox sh
kubectl run -it --rm --restart=Never curl --image=curlimages/curl curl -v