0

一个月前,我使用 kubeadm 部署了一个 v1.13.0 的 kubernetes 集群,其中有一个主节点和三个工作节点。一切都很好。
但是当我要向这个集群注册一个新的工作人员时。kube-proxy deamonset 容器启动时出现以下错误日志:

W0103 09:41:57.631256       1 proxier.go:477] Failed to load kernel module ip_vs with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules  
W0103 09:41:57.631256       1 proxier.go:477] Failed to load kernel module ip_vs with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules
W0103 09:41:57.631983       1 proxier.go:477] Failed to load kernel module ip_vs_rr with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules
W0103 09:41:57.632666       1 proxier.go:477] Failed to load kernel module ip_vs_wrr with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules
W0103 09:41:57.633330       1 proxier.go:477] Failed to load kernel module ip_vs_sh with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules
W0103 09:41:57.638341       1 server_others.go:295] Flag proxy-mode="" unknown, assuming iptables proxy
W0103 09:41:57.802455       1 node.go:108] Failed to retrieve node IP: host IP unknown; known addresses: []
I0103 09:41:57.802480       1 server_others.go:148] Using iptables Proxier.
W0103 09:41:57.802597       1 proxier.go:314] invalid nodeIP, initializing kube-proxy with 127.0.0.1 as nodeIP

由于 kube-proxy 在容器内,所以主要问题是:

W0103 09:41:57.802455       1 node.go:108] Failed to retrieve node IP: host IP unknown; known addresses: []  

e

(版本兼容性已被证明不是这个问题的主要原因)

希望有这方面的专家可以帮助我。

4

2 回答 2

1

我最终通过检查 kubelet 日志找到了这个问题的根本原因,该日志报告了一条警告,即该路由没有默认路由。手动添加默认路由后,问题得到解决,一切顺利。

于 2019-01-07T03:26:37.637 回答
0

引用贡献者的官方文档关于 Kubernetes 版本控制和向后兼容性/组件偏差:

...节点可能会落后于主组件最多两个次要版本,但应该是不比主组件更新的版本...

所以我想这根本不支持集群设置。

于 2019-01-03T14:56:35.503 回答