0

我在 CentOS 8 上部署了一个具有 3 个节点的 RKE 集群。

安装成功但发现 pod 无法解析外部 URL,因为 CoreDNS 的 ClusterIP 无法访问。

只有 pod 到 pod 通信有效。

我检查了每个集群 IP 条目的 iptables 规则,它们存在。

这个问题的根本原因可能是什么?有什么提示吗?

4

1 回答 1

0

更改配置文件:/etc/sysctl.conf

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

来源:https ://github.com/coredns/coredns/issues/1879#issuecomment-398679334

于 2021-12-28T03:29:38.230 回答