具有公共和专用端点的EKS

问题描述 投票:0回答:1

也许有人可以帮助解决这个问题..我将非常感激。

我在不同区域和不同 VPC 中有 2 个 EKS 集群(暂存和生产)。

在两个集群上,我都启用了 EKS 公共端点(仅限特定 IP)和专用端点。

我希望能够从外部访问集群(以防万一)并且我希望集群可以通过内部 IP 相互通信。 为此,我配置了 VPC 对等互连。其他 AWS 服务的 DNS 一切正常,例如,我可以 ping 并解析展位 VPC 中的本地 ec2 实例名称。

如果我尝试从暂存 VPC ping 暂存集群的 EKS 端点: 它返回我本地 EKS 端点 IP - 一切正常。

但是,如果我尝试从暂存 VPC ping 生产集群的 EKS 端点: 它返回我公共 IP - 这是一个问题(正如我之前提到的,DNS 解析正在工作,因为我可以从暂存 VPC 解析生产 VPC 的 ec2 实例 dns 名称)

也许这是 EKS 特有的问题,而我做错了什么?

在 VPC 上,我已为 DNS 启用这些参数:

  enable_dns_support = "true"
  enable_dns_hostnames = "true"

VPC 对等互连配置为允许双方进行 DNS 解析

  requester {
    allow_remote_vpc_dns_resolution = true
  }
  accepter {
    allow_remote_vpc_dns_resolution = true
  }

EKS is configured to allow public endpoint and private endpoint.

vpc_config {

endpoint_private_access = true
endpoint_public_access = true
public_access_cidrs = ["MY_IP_HERE"]

}





I did some tests regarding this and didn't find solution, I belive I probably doing something wrong.
I'm expecting that the cluster will have the ability to communicate with each other through internal network
amazon-web-services amazon-eks amazon-vpc aws-vpc-peering
1个回答
0
投票

我也有同样的问题吗?运气好的话 ?你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.