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 個月前檢視次數 363 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南