1、标准化环境
1、关闭防火墙
[root@zhang ~]# systemctl stop firewalld
[root@zhang ~]# systemctl disable firewalld
2、关闭swapoff
[root@zhang ~]# swapoff -a
关闭selinux
[root@zhang ~]# sed -i 's/^ *SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
[root@zhang ~]# setenforce 0
2、设置iptable(注意一定要设置否则后面初始化的时候会报错)
[root@zhang ~]# cat <<EOF> /etc/sysctl.d/k8s.conf
> net.bridge.bridge-nf-call-ip6tables