Node conditions and kubelet
Read the Node, not just the status column
The kubelet is the agent on a node that works to keep the node’s assigned Pods running. It reports node and workload state to the API server and uses a container runtime to manage containers. Start a node investigation by comparing a Node object with its heartbeat Lease, pressure conditions and recent workload failures. A node can report Ready=True while an individual application is unhealthy; Ready=False indicates reported node unhealthiness, whereas Ready=Unknown indicates the control plane no longer has sufficiently fresh heartbeat evidence. Neither identifies the root cause. All commands here are static, require a separately approved disposable cluster and explicit lab credentials, and must not be executed against an unknown context.
kubectl --kubeconfig ./lab.kubeconfig --context bm-lab get node worker-akubectl --kubeconfig ./lab.kubeconfig --context bm-lab describe node worker-akubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n kube-node-lease get lease worker-a -o jsonInterpret the heartbeat timeline
The kubelet reports Node status and separately renews a lightweight Lease in kube-node-lease. Status updates may be less frequent than Lease renewals. Compare times using the same time basis and verify clock synchronization; a stale condition timestamp alone is not evidence of a lost heartbeat. In this fictional snapshot at 12:00:00 UTC, a renewal at 11:59:54 is six seconds old, while the last reported Ready condition has not changed for two minutes. A second node has no renewal for 90 seconds and Ready=Unknown. Investigate the control-plane communication path and the node agent for the second node. The exercise uses an illustrative 60-second freshness boundary, not a universal Kubernetes setting.
worker-a: Ready=True; lastTransitionTime=11:58:00Z; Lease=11:59:54Zworker-b: Ready=Unknown; lastTransitionTime=11:59:30Z; Lease=11:58:30ZObservation time: 12:00:00ZRead pressure independently of readiness
MemoryPressure, DiskPressure and PIDPressure report resource stress, while NetworkUnavailable can indicate network configuration problems. A node may be Ready and also report DiskPressure. Check available bytes and inodes on the relevant filesystem, or memory and process usage, rather than guessing from a single percentage. Compare capacity and allocatable resources when evaluating scheduling; allocated requests are not current usage. Control-plane taints related to conditions can restrict placement or trigger later evictions depending on effect and tolerations. A cordoned node is marked unschedulable in its spec; this is not a failed Ready condition.
worker-c: Ready=True; DiskPressure=True; spec.unschedulable=falseworker-d: Ready=True; DiskPressure=False; spec.unschedulable=trueInterpretation: investigate disk pressure on c; d is cordoned, not necessarily unhealthy.Collect evidence before changing kubelet configuration
On an authorized Linux VM with systemd and a kubelet unit, bounded service status and recent journal entries can help separate an agent failure, API connection error, certificate trust problem and runtime error. Check the actual service manager, runtime and configuration version first. A certificate error warrants checking the clock, expiration, trust chain and approved renewal process; never bypass certificate checks. KubeletConfiguration is a versioned component configuration, not a workload object to apply blindly. Changes can alter scheduling and eviction behavior; review them, plan a maintenance window and test on an isolated node. Logs may contain sensitive paths or identity details; retain only redacted evidence.
systemctl status kubelet --no-pagerjournalctl -u kubelet --since "10 minutes ago" --no-pager -n 80Decide whether maintenance is safe
Cordoning prevents ordinary new scheduling but does not move existing Pods. Draining is a separate maintenance operation that attempts to evict eligible workloads; DaemonSet and mirror Pods require special handling, and local data or a PodDisruptionBudget can block progress. Do not bypass an eviction budget or delete local data just to finish a drain. Verify spare capacity, storage constraints, workload recovery and approval before proceeding. After maintenance, check node conditions and Lease freshness plus application readiness and a real service-level check before an authorized uncordon. In the offline practice, choose evidence and a next action; do not change a live node.
Maintenance record: spare capacity verified; PDB blocks evictionDecision: stop and coordinate capacity or workload recoveryRecovery evidence: fresh Lease + healthy conditions + successful application checksCheck Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Node conditions and kubelet — knowledge check
Interpret Kubernetes Node conditions, kubelet responsibilities and Lease heartbeat evidence without confusing cordon state with node health.
A Node has Ready=Unknown and a stale Lease. What is justified?
Ready=True and DiskPressure=True appear together. What does this mean?
A fresh Lease accompanies an old Ready transition time. What should you conclude?
What does cordoning normally do?
A drain is blocked by a PDB. What is the appropriate next step?