省略部分内容,
禁用swap
sudo swapoff -a
注释掉 /etc/fstab 文件中
/dev/mapper/centos-swap swap
安装calico插件
https://docs.projectcalico.org/getting-started/kubernetes/hardway/install-cni-plugin
解决 unable to update cni config: no networks found in /etc/cni/net.d
安装cni插件
https://github.com/projectcalico/cni-plugin/releases
解决 failed to find plugin "portmap" in path
安装 conntrack
yum install conntrack-tools
解决 The binary conntrack is not installed