Swap Off - why is it necessary?

To complete the @thockin comment, as the doc precise as a requirement at the beginning of the Installing kubeadm process:

You MUST disable swap in order for the kubelet to work properly.

I would add this command to be totally sure everything is disabled:

# First diasbale swap
sudo swapoff -a

# And then to disable swap on startup in /etc/fstab
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
1 Like