[ERROR Swap]: running with swap on is not supported. Please disable swap

created at 09-13-2021 views: 1

environment

  • Ubuntu 20.04 LTS
  • Docker 20.10.8
  • Kubernetes 1.22.1
  • Node: master

execute command

$ kubeadm init

error 

[ERROR Swap]: running with swap on is not supported. Please disable swap

Error description:

Kubeadm init cannot be performed when the Swap partition is turned on.

solution

$ swapoff -a
$ free -m

Temporarily close Swap.

Please log in to leave a comment.