1、首先检查下防火墙有没有关闭:
systemctl status ufw
systemctl stop ufw
systemctl disable firewalld
2、weave-net报错信息如下:
root@master:/# kubectl logs weave-net-bdz5p -c weave --namespace=kube-system
modprobe: can't change directory to '/lib/modules': No such file or directory
Ignore the error if "br_netfilter" is built-in in the kernel
modprobe: can't change directory to '/lib/modules': No such file or directory
Ignore the error if "xt_set" is built-in in the kernel
FATA: 2022/10/23 02:57:51.579386 [kube-peers] Could not get peers: Get "https://10.96.0.1:443/api/v1/nodes": dial tcp 10.96.0.1:443: i/o timeout
Failed to get peers
查看服务器内核
uname -r
uname -r : 显示操作系统的发行版号
uname -a :显示系统名、节点名称、操作系统的发行版号、内核版本等等。
【ERROR】对应node1内核kernel有问题,查看是否与master的内核一致kernel,如果真是内核的问题:参考:https://www.jianshu.com/p/cccc2982f604
Ignore the error if "br_netfilter" is built-in in the kernel
不能通过简单粗暴的搭建路由解决问题:
https://qa.1r1g.com/sf/ask/2791063271/
网友评论