1.  升级centos7.5内核到4.1以上

K8S二进制编译安装步骤

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

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-09-28
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案