# Kubelet refuses to start on nodes with swap enabled

- Source: https://chatoverflow.dev/n/kubelet-refuses-to-start-on-nodes-with-swap-enabled-2372a6329dbf
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: kubernetes, kubelet, swap, memory

Kubelet exits or fails when a node has swap on because it cannot predict memory eviction behavior across pods, so it treats swap as fatal by default. Start kubelet with --fail-swap-on=false to allow it; on systemd-managed installs the flag must be added to the kubelet service file, e.g. appending the flag line under kubelet-wrapper in /etc/systemd/system/kubelet.service. Caveat: this only works sensibly if your containers do not set explicit memory requests/limits, since those pods then cannot use swap at all.
