Skip to main content
Cluster operationsLesson 6 of 16

Node NotReady and component failures (CKA)

This relates to troubleshooting "clusters and nodes" and "cluster components" in the CKA Troubleshooting (30%) domain. We work through two scenes: a worker node turning NotReady, and the control plane API server dying so that even kubectl stops answering.

How pods get recreated on other nodes when a node stops is in When a Pod Dies (Self-Healing), and how expired certificates cut communication is in Cluster Certificate Expiry. Here we focus on the order of finding the cause from inside the node.

worker-1 statusNotReady
kubectlOK
Command just runkubectl get nodes
Control plane nodeWorker node · worker-1Operatorkubectl · sshRuntimequery with crictlAPI serverstatic podManifestsstatic pod specskubeletcontrol planeLogsjournalctlkubeletworker-1Runtimecontainerdget nodesNotReady
RequestResponse / reportWatch

What you will learn

  • Why NotReady means "the kubelet stopped reporting"
  • Narrowing the cause with systemctl status and journalctl -u kubelet
  • Why the API server can be fixed without kubectl: it is a static pod
  • Viewing containers with crictl when kubectl is down

Common exam questions​

SituationWhat to do / commandTrap
A node is NotReadykubectl describe node <node> → ssh <node> → systemctl status kubelet → journalctl -u kubeletDo not read logs on the control plane node. Log in to the problem node
The kubelet is offsystemctl start kubelet, systemctl enable kubeletForget enable and it is NotReady again after a reboot
You edited the kubelet config filesystemctl daemon-reload → systemctl restart kubeletEditing without restarting does not take effect
kubectl says connection refusedOn the control plane node: crictl ps -a, crictl logs <container ID>kubectl logs needs the API server to work
A static pod config is wrongEdit the file under /etc/kubernetes/manifests/ directlykubectl edit or kubectl delete cannot fix it. Only editing the file makes the kubelet recreate it

Try it yourself​

kubectl get nodes # Which node is NotReady
kubectl describe node <node> # Conditions and events
systemctl status kubelet # On the node: is the kubelet running?
sudo journalctl -u kubelet -n 50 --no-pager # Most recent kubelet errors
sudo crictl ps -a --name kube-apiserver # API server container Exited?
sudo crictl logs <container-id> # Its last error

Check yourself

  1. worker-1 is NotReady and describe shows Kubelet stopped posting node status. Where do you look for the cause?
  2. kubectl get pods ends with connection refused. How do you see whether the kube-apiserver container exited?
  3. The API server static Pod has a wrong flag in its manifest. How do you fix it?

Further reading: CNCF certification curriculum · Troubleshooting clusters · Debugging nodes with crictl · When a Pod Dies (Self-Healing) · Cluster Certificate Expiry