You SSH into a node to debug and need container logs and state without kubectl. What do you use?
BeginnerTroubleshootingNodes, kubelet and container runtime
Answer
Likely causes → API server is unreachable, or you are debugging the kubelet or a control-plane static Pod.
Diagnose →
sudo crictl pods --name web # Pod sandboxes
sudo crictl ps -a | grep web # containers, including exited
sudo crictl logs --tail 100 <container-id>
sudo crictl inspect <container-id> | jq '.status.reason, .status.exitCode'
sudo journalctl -u kubelet -f
ls /var/log/pods/ # raw log files: <ns>_<pod>_<uid>/<container>/
Fix → Use what you find to fix the root cause. crictl needs /etc/crictl.yaml with runtime-endpoint: unix:///run/containerd/containerd.sock.
Prevent → Make SSM/SSH or kubectl debug node/... access part of the on-call setup before you need it.
More on Nodes, kubelet and container runtime
A node is `NotReady` and `kubectl describe node` shows `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.BeginnerA node flips to `NotReady` with `Kubelet stopped posting node status`.BeginnerNode condition shows `PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s`.AdvancedAfter a reboot the kubelet will not start: `failed to run Kubelet: running with swap on is not supported, please disable swap!`.BeginnerOn a new kubeadm node, static control-plane Pods and other Pods restart randomly every few minutes. Containerd is installed from the distro.AdvancedPods are evicted from a node with `The node was low on resource: ephemeral-storage. Threshold quantity: 10%, available: 8%` and the node shows `DiskPressure`.Intermediate