首页 > 解决方案 > 从 Kubernetes 集群中的 Worker 节点访问 Pod

问题描述

我有 3 个节点,node1 node2 node3
,我有 2 个 coredns pod。它们实际上存在于 node1、node2 中。
当我在 node1 中测试时,我可以访问 node2 中的 coredns pod。
但我无法访问 node1 中的 coredns pod。
我用印花布做 cni。我该如何解决它..?

例如。
在节点 1 中,coredns1 - 1.1.1.1。
在节点 2 中,coredns2 - 2.2.2.2。

在节点 1。
访问 1.1.1.1:8080/health -> 超时。
访问 2.2.2.2:8080/health -> 好的。

在节点 2 中。
访问 1.1.1.1:8080/health -> 好的。
访问 2.2.2.2:8080/health -> 超时。

标签: kubernetes

解决方案


推荐阅读