k8s-node-troubleshooting
Kubernetes node troubleshooting
Find out why a node is unhealthy, or why pods will not be scheduled onto it, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.
You see the node only through the Kubernetes API. Checks on the node itself (the kubelet, the container runtime, the disk) need someone with access to the machine, so they are always proposed fixes for a human.
The commands use placeholders: my-node, my-namespace, my-app and my-pod.
Replace them with the real names. Never read Secrets. If output contains passwords,
tokens or keys, do not repeat them.