mysql连接测试不成功的原因有哪些
787
2022-10-25
K8s问题【flannel一直重启问题,CrashLoopBackOff】
kubectl describe 命令查看Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 13m default-scheduler Successfully assigned kube-system/kube-flannel-ds-amd64-vfhnj to node-d1
Normal Pulled 13m kubelet, node-d1 Container image "quay.io/coreos/flannel:v0.11.0-amd64" already present on machine
Normal Created 13m kubelet, node-d1 Created container install-cni
Normal Started 13m kubelet, node-d1 Started container install-cni
Normal Pulled 10m (x5 over 13m) kubelet, node-d1 Container image "quay.io/coreos/flannel:v0.11.0-amd64" already present on machine
Normal Created 10m (x5 over 13m) kubelet, node-d1 Created container kube-flannel
Normal Started 10m (x5 over 13m) kubelet, node-d1 Started container kube-flannel
Warning BackOff 3m39s (x30 over 12m) kubelet, node-d1 Back-off restarting failed container
kubectl logs命令查看[root@master ~]# kubectl logs kube-flannel-ds-amd64-9w5nq -n kube-system
I1216 05:59:40.055608 1 main.go:527] Using interface with name eth0 and address 192.168.1.82
I1216 05:59:40.055666 1 main.go:544] Defaulting external address to interface address (192.168.1.82)
E1216 06:00:10.056546 1 main.go:241] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-amd64-9w5nq': Get dial tcp 10.96.0.1:443: i/o timeout
问题排查
网络问题?通过curl命令测试,网络没有问题。
测试kube-proxy重启该节点上的kube-proxy容器,并查看日志
kubectl delete pod kube-proxy-vtd27 -n kube-system
[root@master ~]# kubectl logs kube-proxy-pljct -n kube-system
W1216 06:30:51.741835 1 proxier.go:513] 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
W1216 06:30:51.742536 1 proxier.go:513] 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
W1216 06:30:51.748495 1 proxier.go:513] 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
W1216 06:30:51.749223 1 proxier.go:513] 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
E1216 06:30:51.750805 1 server_others.go:259] can't determine whether to use ipvs proxy, error: IPVS proxier will not be used because the following required kernel modules are not loaded: [ip_vs_wrr ip_vs_sh]
I1216 06:30:51.757054 1 server_others.go:143] Using iptables Proxier.
W1216 06:30:51.757122 1 proxier.go:321] clusterCIDR not specified, unable to distinguish between internal and external traffic
I1216 06:30:51.757338 1 server.go:534] Version: v1.15.0
这里明显有个问题。一些需要的内核模块加载失败,参考安装文档,已经配置过内核模块。重新尝试,问题依然存在。[root@master ~]# cat > /etc/sysconfig/modules/ipvs.modules <
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~