swapoff -a
mkdir /var/run/kubernetes
chmod -R 777 /var/run/kubernetes
systemctl restart kubelet kube-controller-manager
kube-proxy 替换IPVS模式
yum install libnetfilter_conntrack-devel libnetfilter_conntrack conntrack-tools-1.4.4-5.el7_7.2.x86_64 ipvsadm -y
modprobe ip_vs
modprobe ip_vs_rr
modprobe ip_vs_wrr
modprobe ip_vs_sh
modprobe nf_conntrack_ipv4
修改proxy配置文件
--proxy-mode=ipvs
--ipvs-min-sync-period=2s
--ipvs-sync-period=3s
--ipvs-scheduler=rr
然后重启kubelet 服务