DNS Connectivity Issues for Pods in Amazon EKS Cluster

0

Hello,

I'm currently facing an issue with Pods running inside an Amazon EKS cluster. These Pods need to connect to a few internal on-premises services from one of the microservices deployed on our AWS account, which is connected via DirectConnect. Unfortunately, I'm encountering some connectivity problems related to DNS.

When attempting to run a curl command to the internal URL from within the Pod, I encounter the following error: Error: getaddrinfo ENOTFOUND

As an alternative, I tried using the IP address of the URL, and it worked. However, I had to use the -k and -v curl options to make it work.

I would greatly appreciate any advice or guidance on how to resolve this DNS issue. Your expertise would be invaluable in helping me understand and overcome this challenge. Thank you in advance for your assistance.

Ali Md
已提问 6 个月前362 查看次数
1 回答
0
已接受的回答

If you are using the AWS route53 vpc resolver then you will need to setup route53 outbound endpoints in the vpc of where your eks is.

Then you will need to create a rule for the dns domain you are trying to resolve along with any domains which are included in cname records.

The rules define the domains, endpoints and name servers to resolve on prem host names.

You can instead have these in a central network account as such and share them to each vpc using RAM.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-forwarding-outbound-queries.html

profile picture
专家
已回答 6 个月前
profile picture
专家
已审核 2 个月前
profile picture
专家
已审核 6 个月前
  • Understood. Thank you Gary!

  • Come back with any questions but this should meet your requirement.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则