**已关闭。**此问题为not about programming or software development。目前不接受回答。
此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题相关,可以发表评论,说明在何处可以回答此问题。
8天前关闭
Improve this question的
在RHEL从7升级到8之后,我在kubernetes中遇到了问题。集群中所有其他pod都启动了,但我有一个特定的pod(比如x),它依赖于redis svc(redis pod正在运行),并且看起来因为它们之间的连接问题,pod x没有启动。它有时会卡在Init:0/1
或CrashLoopBackOff
状态。
下面是观察结果--
1]从主节点,无法连接到任何SVC_IP:PORT
。我得到TIMEOUT
问题。
这是工作较早,这是工作在不同的集群,其中升级尚未完成。
2]在kube-proxy
日志中,我看到下面的错误。
I1122 14:29:39.9331 1 proxier.go:655] "Failed to load kernel module with modprobe. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules" moduleName="nf_conntrack_ipv4"
字符串
有时候,它会给下面的错误。
三、
E1122 14:54:11.9246 1 proxier.go:1529] "Failed to execute iptables-restore" err="exit status 4 (iptables-restore v1.8.5 (nf_tables): \nline 657: CHAIN_USER_DEL failed (Device or resource busy): chain KUBE-SVC-UMV3KTOIFNFELO5E\nline 657: CHAIN_USER_DEL failed (Device or resource busy): chain KUBE-SEP-VRO2R645NJPETMB6\nline 657: CHAIN_USER_DEL failed (Device or resource busy): chain KUBE-SEP-TDA5RKUI34ML2QGB\nline 657: CHAIN_USER_DEL failed (Device or resource busy): chain KUBE-SVC-4C5W7IK5CBK4B7LK\n)"
I1122 14:54:11.9210 1 proxier.go:847] "Sync failed" retryingTime="30s"
型
同样,这在其他尚未升级的群集中也不存在。
4]另一个观察是,
无法telnet到其他节点上运行的Pod。
它连接到同一节点上的pod,但不连接到其他节点上运行的pod。
在我搜索这个问题后,看起来这与kube-proxy
或flannel
有关,负责在集群内建立通信。Other details
-
k8s version - `1.22.13`
flannel - 0.14.0-rc1
Previous RHEL 7 version - RHEL 7.9
Current RHEL 8 version - RHEL 8.9
型
有没有人遇到过类似的问题?如果有,你能分享一下你的经验吗?
谢谢你,
尝试重新启动k8s节点,
已安装iptable_nat
、nf_conntrack
。
1条答案
按热度按时间332nm8kg1#
您也可以检查RHEL 8上的防火墙状态。可能是更新后自动启动的服务:
字符串
试着停下来玩一玩:
型