一个月前,我使用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
(版本兼容性已被证明不是此问题的主要原因)
希望有人对此有所帮助可以帮助我。
答案 0 :(得分:1)
最后,我通过检查kubelet日志找到了此问题的根本原因,该日志报告了一条警告,指出该路由没有默认路由。手动添加默认路由后,问题已解决,一切顺利。
答案 1 :(得分:0)
official文档中有关Kubernetes发行版本和向后兼容性/组件偏斜的参与者的报价:
...节点最多可以使主组件滞后两个次要版本,但其版本不得比主组件新 ...
所以我想这根本不支持集群设置。