code/single-node-kubernetes/disable-swap.sh

5 lines
121 B
Bash
Raw Normal View History

# kubelet requires swap off
swapoff -a
# keep swap off after reboot
sudo sed -i '/\bswap\b/ s/^\(.*\)$/#\1/g' /etc/fstab