Skip to content

Node NotReady: check lease, conditions and kubelet

Kubernetestested on RKE2 v1.37.2

The kubelet reports in via a lease in kube-node-lease. If it stays away for about 50 seconds, the controller manager sets the conditions to Unknown and adds a taint. Unknown means the kubelet is silent. False would mean it runs and reports a problem itself.

Symptom

for i in $(seq 7); do
  echo "$(date +%T) $(kubectl get node worker2 --no-headers | awk '{print $2}')" \
    "$(kubectl -n kube-node-lease get lease worker2 -o jsonpath='{.spec.renewTime}')"
  sleep 10
done
11:10:54 Ready 2026-11-20T11:10:46.265098Z
11:11:36 Ready 2026-11-20T11:10:46.265098Z
11:11:47 NotReady 2026-11-20T11:10:46.265098Z
11:11:57 NotReady 2026-11-20T11:10:46.265098Z

The lease is no longer renewed; about 50 seconds later (node-monitor-grace-period) the status flips to NotReady.

Diagnosis

Taints and conditions of the node, then the service and journal on the node itself.

kubectl describe node worker2 | grep -A1 '^Taints'
J='{range .status.conditions[*]}{.type} {.status} {.reason}{"\n"}{end}'
kubectl get node worker2 -o jsonpath="$J"
ssh -n worker2 systemctl is-active rke2-agent
ssh -n worker2 sudo journalctl -u rke2-agent -b --no-pager | grep Stopped | tail -1 \
  | cut -c1-88
Taints:             node.kubernetes.io/unreachable:NoExecute
                    node.kubernetes.io/unreachable:NoSchedule
NetworkUnavailable False FlannelIsUp
MemoryPressure Unknown NodeStatusUnknown
DiskPressure Unknown NodeStatusUnknown
PIDPressure Unknown NodeStatusUnknown
Ready Unknown NodeStatusUnknown
inactive
Nov 20 11:10:51 worker2 systemd[1]: Stopped rke2-agent.service - Rancher Kubernetes Engi

Causes

StoppedThe service was stopped

On RKE2 the kubelet is a child process of rke2-agent. "Stopped" in the journal means someone halted the service. Without a kubelet nobody renews the lease.

Kubelet exitedService active, but the kubelet exits

rke2-agent reports active but restarts the kubelet every five seconds. In the course it's a typo in kubelet-arg (max-pod instead of max-pods) that RKE2 passes through unchecked – the same happens with flags an upgrade has removed.

L=/var/lib/rancher/rke2/agent/logs/kubelet.log
ssh -n worker2 "sudo grep 'command failed' $L" | tail -1 | cut -c1-120
E1120 11:32:13.611217  171561 run.go:72] "command failed" err="failed to parse kubelet
  flag: unknown flag: --max-pod"

Fix

Start the service again. As soon as the kubelet renews the lease, the node becomes Ready and the taint disappears.
ssh -n worker2 sudo systemctl start rke2-agent
kubectl wait --for=condition=Ready node/worker2 --timeout=120s
kubectl describe node worker2 | grep '^Taints'
node/worker2 condition met
Taints:             <none>

Don't: Trying kubectl debug node/worker2. The debug pod would have to be started by exactly the kubelet that isn't running.

▶
Break it yourself and find it – free
Debugging Kubernetes, day 14: node NotReady, pods stuck after the failure, evictions and a drain that won't finish – with a drill to reproduce each one.
Go to day 14 →

FAQ

Why does NetworkUnavailable stay False?

On RKE2 this condition comes from Canal, not from the kubelet. It stays put even when the kubelet is silent.

Do the pods on the node keep running?

The containers keep running, but for Kubernetes the node is gone. Pods tolerate an unreachable node for 300 s, then they are marked for deletion and hang in Terminating until the kubelet is back.

Related error patterns

More