从 Kubernetes 集群中的 Worker Node 访问 Pod

时间:2021-05-14 02:14:36

标签: kubernetes

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

例如。
在 node1 中,coredns1 - 1.1.1.1.
在 node2 中,coredns2 - 2.2.2.2.

在 node1.
访问 1.1.1.1:8080/health -> 超时。
访问 2.2.2.2:8080/health -> 好的。

在 node2 中。
访问 1.1.1.1:8080/health -> ok。
访问 2.2.2.2:8080/health -> 超时。

0 个答案:

没有答案