kubernetes - 从 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 -> 超时。
解决方案
推荐阅读
- flutter - 颤动 - 中心溢出的文本和剪辑
- angular - QueryList 是否监视元素的 innerHTML 变化?
- javascript - HTML5 拖放数据传输 setData 在 Firefox 中不起作用
- winapi - 如何在 CPrintDialogEx 中获取属性表的句柄
- java - 我正在尝试计算 java 链表中的值 int 没有成功
- .net - One Drive 文件夹的 .NET Directory.Move() 失败
- python - 如何使用 python 将文件夹或文件从远程仪器复制到同一仪器
- reactjs - 选择时如何将图像添加到我的 src
- c - 如何将标准输出发送到共享 mmap?
- r - R:使用 lubridate 到月底的天数