无法访问另一个节点的 pod

问题描述

我使用 RKE 工具安装了一个 3 节点 Kubernetes 集群。安装成功且没有错误,但我无法从一个 Pod ping 到另一个 Pod。

如果我 ping 在 worker2 节点 (NODE-IP-10.222.22.47) 上运行的 Pod,我会收到响应,但没有来自在 worker1 (NODE-IP-10.222.22.46) 上运行的 Pod 的响应。

enter image description here

我的 Pod 如下 -

enter image description here

我还注意到,对于某些 pod,它提供了节点 IP 地址。节点 IP 地址是 Master1=10.222.22.45

Worker1=10.222.22.46

工人 2=10.222.22.47 cluster_cidr: 10.42.0.0/16

service_cluster_ip_range: 10.43.0.0/16

cluster_dns_server: 10.43.0.10

覆盖网络 - 运河

OS- CentOS Linux 7.8.2003 版

Kubernetes - v1.20.8 安装了 rke 工具

Docker - 20.10.7

所有节点中的 sysctl 条目

安装前在所有节点中禁用防火墙。

检查 - sysctl net.bridge.bridge-nf-call-ip6tables

net.bridge.bridge-nf-call-ip6tables = 1

检查 - sysctl net.bridge.bridge-nf-call-iptables

net.bridge.bridge-nf-call-iptables = 1

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)