K8S二进制编译安装步骤
1. 升级centos7.5内核到4.1以上cd /opt/tar xf kernel-ml-5.0.4.tgzyum localinstall -y kernel-ml-devel-5.0.4-1.el7.elrepo.x86_64.rpm kernel-ml-5.0.4-1.el7.elrepo.x86_64.rpmcat /boot/grub2/grub.cfg | grep menuent
1. 升级centos7.5内核到4.1以上
cd /opt/
tar xf kernel-ml-5.0.4.tgz
yum localinstall -y kernel-ml-devel-5.0.4-1.el7.elrepo.x86_64.rpm kernel-ml-5.0.4-1.el7.elrepo.x86_64.rpm
cat /boot/grub2/grub.cfg | grep menuentry
grub2-set-default "CentOS Linux (5.0.4-1.el7.elrepo.x86_64) 7 (Core)"
grub2-editenv list
reboot
2. 开启支持IPVS
ip_vs, ip_vs_lc, ip_vs_wlc, ip_vs_rr, ip_vs_wrr, ip_vs_lblc, ip_vs_lblcr, ip_vs_dh, ip_vs_sh, ip_vs_fo, ip_vs_nq, ip_vs_sed, ip_vs_ftp, nf_conntrack
cat > /etc/sysconfig/modules/ipvs.modules <<EOF
#!/bin/bash
modprobe -- ip_vs
modprobe -- ip_vs_rr
modprobe -- ip_vs_wrr
modprobe -- ip_vs_sh
modprobe -- nf_conntrack
EOF
chmod +x /etc/sysconfig/modules/ipvs.modules
bash /etc/sysconfig/modules/ipvs.modules
更多推荐
所有评论(0)