diff --git a/1-init.sh b/1-init.sh index 57a5cb9..bcb22ee 100644 --- a/1-init.sh +++ b/1-init.sh @@ -14,6 +14,10 @@ net.bridge.bridge-nf-call-iptables = 1 EOF sudo sysctl --system +# 关闭swap +sudo swapoff -a +sed -i 's/.*swap.*/#&/' /etc/fstab + cd ./docker && bash ./install.sh && cd .. cd ./kubeadm && bash ./install.sh && cd ..