Skip to content
Visual explainer 3h to learn 4 steps

NotReady nodes & kubelet issues

Bring a NotReady node back by checking kubelet, runtime and certificates.

By Invicly Tech, , in Kubernetes Administrator (CKA). About 9 minutes to read.

Topic 28 of 33

In short

A node goes NotReady when its kubelet stops posting healthy status to the API server. The usual causes are a stopped or misconfigured kubelet, a broken container runtime, expired certificates or a missing CNI. You fix it on the node with systemctl, journalctl and the kubelet config files.

Explained simply

Every node runs a program called the kubelet. It is the node's messenger: it reports to the API server, every few seconds, that the node is alive and healthy, and it starts and stops containers there. If the reports stop, the node is marked NotReady.

So when a node is NotReady, the question is: why did the kubelet stop reporting good news? Either the kubelet is not running, it cannot reach the API server, or it is running but something it depends on (the container runtime or the network plugin) is broken.

You fix nodes from the inside. You ssh to the node and use normal Linux tools: systemctl to check and start services, journalctl to read their logs, and a text editor for config files. kubectl only shows you the symptoms.

After about five minutes NotReady, Kubernetes starts moving Pods off the node to healthy ones. In the exam, the clock is the main pressure: a calm checklist is faster than guessing.

Press Play on a diagram to walk through it one step at a time.

FlowNotReady node checklist
  1. 1
    Describe node

    Read Conditions and recent events.

  2. 2
    SSH to node

    Check systemctl status kubelet.

  3. 3
    Read kubelet logs

    journalctl -u kubelet for the exact error.

  4. 4
    Check runtime

    systemctl status containerd; crictl info.

  5. 5
    Fix config or certs

    config.yaml, kubelet.conf, PKI, then restart.

LayersWhat a node needs to be Ready
  1. 1
    Node Ready condition

    Reported by the kubelet

  2. 2
    Kubelet reaches API server

    kubelet.conf address and valid client cert

  3. 3
    Kubelet process running

    systemd unit, correct binary and config

  4. 4
    Container runtime

    containerd running, matching cgroup driver

  5. 5
    CNI plugin

    Config in /etc/cni/net.d, plugin Pods healthy

  6. 6
    Linux host

    Disk, memory, swap off, correct time

In depth

How the control plane decides a node is NotReady

The kubelet renews a Lease object in the kube-node-lease namespace about every 10 seconds and updates the node's status conditions periodically. The node lifecycle controller in the controller manager watches those signals. If they stop for the grace period (under a minute by default), it sets Ready to Unknown with the message Kubelet stopped posting node status, and taints the node node.kubernetes.io/unreachable.

That difference matters. Ready Unknown means the kubelet is silent: stopped, crashed, or unable to reach the API server. Ready False means the kubelet is alive and reporting a problem itself, such as the container runtime or CNI not being ready; the condition's message says which. MemoryPressure, DiskPressure and PIDPressure True mean the node is short of resources and evicting Pods.

CompareReady Unknown versus Ready False
Ready: Unknown
  • Kubelet stopped posting status
  • Kubelet down or cannot reach API
  • Check systemctl and kubelet.conf
  • unreachable taint added
Ready: False
  • Kubelet is running and reporting
  • Message names the problem
  • Often runtime or CNI not ready
  • not-ready taint added

Where the kubelet's settings really live

On a kubeadm node the kubelet is a systemd service made of several files. systemctl cat kubelet prints the unit and every drop-in, which is the safest way to see which files are used. The kubeadm drop-in (10-kubeadm.conf) passes --kubeconfig=/etc/kubernetes/kubelet.conf, --bootstrap-kubeconfig, --config=/var/lib/kubelet/config.yaml, and reads extra flags from /var/lib/kubelet/kubeadm-flags.env and /etc/default/kubelet (or /etc/sysconfig/kubelet on RHEL).

config.yaml holds settings like clusterDNS, staticPodPath, cgroupDriver and the client CA file. kubelet.conf holds the API server address and the client certificate the kubelet uses to log in. After changing a systemd file, run systemctl daemon-reload; after changing any kubelet file, run systemctl restart kubelet.

  • systemctl cat kubelet shows the real ExecStart and flags
  • ExecStart must point at the real binary: check with which kubelet
  • systemctl enable --now kubelet starts it and keeps it on after reboot

The classic node breakages

Kubelet stopped or disabled: start and enable it. Wrong binary path in the drop-in (for example /usr/local/bin/kubelet when it lives in /usr/bin): the service fails with status=203/EXEC. A wrong path or typo in config.yaml: the kubelet logs failed to load kubelet config file and exits. Wrong server address or port in kubelet.conf: the log shows connection refused or timeout to the API server.

The container runtime matters too. If containerd is stopped, the node goes NotReady with a runtime message, and if containerRuntimeEndpoint points at the wrong socket the kubelet cannot start Pods. A cgroup driver mismatch (kubelet cgroupDriver systemd but containerd without SystemdCgroup = true) leads to unstable containers. Swap turned on makes the kubelet refuse to start unless it is configured to allow swap.

  • sudo journalctl -u kubelet -n 50 --no-pager
  • sudo systemctl status containerd; sudo crictl info
  • free -h shows whether swap is on; swapoff -a turns it off

Certificates and disk pressure

The kubelet logs in with a client certificate, normally /var/lib/kubelet/pki/kubelet-client-current.pem, which it rotates automatically before expiry. If rotation failed or the clock jumped, the log shows x509 certificate has expired or is not yet valid. Check dates with openssl x509 -in FILE -noout -dates and the node's time with timedatectl. kubeadm certs check-expiration on the control plane covers the control plane certificates.

DiskPressure appears when free space on the node's filesystem drops below the eviction threshold (by default 10 percent for nodefs and 15 percent for the image filesystem). The kubelet first deletes unused images and dead containers, then evicts Pods. df -h and sudo du -xh --max-depth=1 /var/lib | sort -h show where the space went; often container logs or images.

Learn it in 4 short steps

About 45m each. Track them with a timer in your plan.

  1. 1
    Check node conditions~45m
  2. 2
    Inspect kubelet status and logs~45m
  3. 3
    Check the container runtime~45m
  4. 4
    Fix kubelet configuration and certificates~45m

Key points

  • Node conditions include Ready, MemoryPressure, DiskPressure and PIDPressure.
  • A stopped kubelet makes the node NotReady within about a minute.
  • Kubelet config is /var/lib/kubelet/config.yaml; its kubeconfig is /etc/kubernetes/kubelet.conf.
  • After editing service drop-ins run daemon-reload, then restart and enable kubelet.

Key terms

Tap a card to flip it. 0/5 known

Examples

bash
kubectl get nodes
kubectl describe node worker1 | sed -n "/Conditions/,/Addresses/p"
ssh worker1
sudo systemctl status kubelet
sudo journalctl -u kubelet -n 50 --no-pager
sudo systemctl status containerd
sudo vim /var/lib/kubelet/config.yaml
sudo systemctl daemon-reload
sudo systemctl enable --now kubelet

Kubelet fails with status 203/EXEC

worker1 is NotReady with Ready Unknown. Step 1: ssh in; systemctl status kubelet shows activating (auto-restart) and status=203/EXEC, which means systemd could not run the binary. Step 2: systemctl cat kubelet shows ExecStart=/usr/local/bin/kubelet, but which kubelet says /usr/bin/kubelet. Step 3: fix the path in the drop-in, reload and restart. Step 4: the node turns Ready.

bash
ssh worker1
sudo systemctl status kubelet | head -5
sudo systemctl cat kubelet | grep -n ExecStart
which kubelet                         # /usr/bin/kubelet
sudo sed -i 's#/usr/local/bin/kubelet#/usr/bin/kubelet#' \
  /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf
sudo systemctl daemon-reload
sudo systemctl restart kubelet && sudo systemctl enable kubelet
exit; kubectl get nodes -w

Node Ready False: runtime is down

worker2 shows Ready False, and describe node says container runtime is down or not ready. Step 1: the kubelet is running, so look at what it depends on. Step 2: systemctl status containerd shows inactive (dead). Step 3: start and enable it, and confirm crictl can talk to it. Step 4: the kubelet notices on its next sync and the node returns to Ready.

bash
kubectl describe node worker2 | grep -A2 'Ready '
ssh worker2
sudo systemctl is-active kubelet containerd      # active, inactive
sudo systemctl enable --now containerd
sudo crictl info | head -5
sudo journalctl -u kubelet -n 20 --no-pager
exit; kubectl get node worker2

Quick reference

  • systemctl cat kubelet shows the unit file and every drop-in in use
  • Kubelet config: /var/lib/kubelet/config.yaml; its kubeconfig: /etc/kubernetes/kubelet.conf
  • status=203/EXEC means the ExecStart binary path is wrong
  • Ready Unknown = kubelet silent; Ready False = kubelet reports a problem
  • After editing unit files: systemctl daemon-reload, then restart kubelet
  • Client cert: /var/lib/kubelet/pki/kubelet-client-current.pem; check with openssl x509 -noout -dates
  • systemctl enable --now kubelet starts it now and after every reboot

Common mistakes

  • Restarting kubelet without enabling it, so it fails again after reboot.
  • Fixing the wrong file; check which config path the kubelet unit actually uses.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1A node shows Ready Unknown with Kubelet stopped posting node status. Where do you start?

Question 2

2systemctl status kubelet shows status=203/EXEC. What does it mean?

Question 3

3You changed /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf. What must you run before restarting the kubelet?

Question 4

4Which file holds the API server address the kubelet connects to on a kubeadm node?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Write the conditions of every node (name, Ready status) to /opt/nodes.txt using one kubectl command.

  2. Exercise 2medium

    In a lab, stop and disable the kubelet on a worker, time how long until it shows NotReady, then bring it back so it survives a reboot.

  3. Exercise 3hard

    A worker is NotReady. Write a short checklist script you could run on the node that prints the state of everything the kubelet depends on.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Why is my Kubernetes node NotReady?
The kubelet is not running, cannot reach the API server, or reports that the container runtime or network plugin is not ready. kubectl describe node shows which, and journalctl -u kubelet on the node shows the details.
What happens to Pods on a NotReady node?
After about five minutes (the default tolerationSeconds for the unreachable and not-ready taints), Pods controlled by Deployments and similar controllers are recreated on healthy nodes.
How do I restart the kubelet?
Run sudo systemctl restart kubelet on that node. If you edited a systemd file first, run sudo systemctl daemon-reload before it.

Go deeper

ShareXLinkedInWhatsApp