π ~1 min read
Table of contents
Symptom & Impact
Kubelet repeatedly fails, preventing node registration and pod scheduling.
Environment & Reproduction
Common after reboot where swap is re-enabled from fstab.
systemctl status kubelet
swapon --show
cat /etc/fstab
Root Cause Analysis
Kubelet policy rejects active swap unless explicitly configured, causing service startup failure.
Quick Triage
Confirm swap state and kubelet error messages.
journalctl -u kubelet -n 120 --no-pager
free -h
systemctl is-active containerd
Step-by-Step Diagnosis
Inspect kubelet config and boot persistence of swap devices.
grep -RIn 'failSwapOn' /var/lib/kubelet /etc/systemd/system/kubelet.service.d 2>/dev/null
lsblk
swapon --summary

Solution – Primary Fix
Disable active swap and remove auto-enable entries from fstab.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo swapoff -a
sudo sed -i '/sswaps/s/^/#/' /etc/fstab
sudo systemctl daemon-reload
sudo systemctl restart kubelet

Solution – Alternative Approaches
If swap is required for local policy, explicitly tune kubelet settings for compatible behavior.
sudo sed -i 's/failSwapOn: true/failSwapOn: false/' /var/lib/kubelet/config.yaml
sudo systemctl restart kubelet
Verification & Acceptance Criteria
Swap remains off after reboot and kubelet stays healthy.
swapon --show
systemctl is-active kubelet
journalctl -u kubelet -n 40 --no-pager
Rollback Plan
Restore swap fstab entries if non-cluster workloads require them.
sudo cp /etc/fstab.bak /etc/fstab 2>/dev/null || true
sudo swapon -a
Prevention & Hardening
Apply node bootstrap checks to enforce swap policy before kubelet start.
swapon --show
grep -n swap /etc/fstab
systemctl status kubelet --no-pager
Related Errors & Cross-Refs
May coincide with cgroup driver mismatch and container runtime startup problems.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu kubeadm and kubelet setup guidance for swap and node prerequisites.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.