【问题标题】:pod to services communication not Working - rke kubernetes on centos 8pod 到服务的通信不起作用 - centos 8 上的 rke kubernetes
【发布时间】:2022-01-26 19:34:44
【问题描述】:

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

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

只有 pod 到 pod 的通信才有效。

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

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

【问题讨论】:

标签: kubernetes rancher coredns rke


【解决方案1】:

更改配置文件:/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

【讨论】:

  • 我已经完成了这些步骤,但仍然有问题,
  • 我还设置了 FELIX_IPTABLESBACKEND=nft 并将 ip_tables 模块列入黑名单。防火墙也被禁用。但还是有问题,请指教?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-07-27
  • 2017-05-04
  • 2022-11-24
  • 2020-04-20
  • 2020-05-14
  • 1970-01-01
  • 2019-06-21
相关资源
最近更新 更多