1.配置主机hostname
2.配置hosts映射并拷贝至其他节点
3.配置时间同步
yum -y install chrony.x86_64 vim /etc/chrony.conf server ntp.aliyun.com iburst server ntp1.aliyun.com iburst server ntp2.aliyun.com iburst server ntp3.aliyun.com iburst systemctl start chronyd systemctl enable chronyd systemctl status chronyd date
4. 关闭并禁用防火墙,selinux,iptables.service。
systemctl stop firewalld systemctl disable firewalld sed -i 's/enforcing/disabled/' /etc/selinux/config
5.禁用swap,如果要永久禁止swap挂载,可以修改/etc/fstab,将与swap有关的配置注释,重启系统即可
swapoff -a
6.配置内核参数
echo "net.ipv4.ip_forward = 1">>/etc/sysctl.conf echo 'net.bridge.bridge-nf-call-iptables = 1'>>/etc/sysctl.conf echo 'net.bridge.bridge-nf-call-ip6tables = 1'>>/etc/sysctl.conf sysctl -p
标签:bridge,sysctl,aliyun,二进制,etc,systemctl,集群,conf,k8s From: https://www.cnblogs.com/rtnb/p/17750135.html