Intranet communication issue in ECS with Route53 in private subnet

佐手、 提交于 2019-12-11 19:09:52

问题


I have hosted our applications on ECS Cluster (EC2 Mode) in a private subnet. I am facing problem with inter-service communication.

  • I have set task networking mode as bridge.
  • Depending on Route53 private hosted zone for service discovery.
  • The services are getting registered under Route53 with SRV record type.
  • Using . for pointing to our hosted service. For example, I have hosted redis container with namespace "local" and service name as "redisdb" then referring that service in application as "redisdb.local"

But I am getting an error in our application saying: "Name or Service not known". I have also tried with AWSVPC mode with A record type. But still I am facing same issue.

Am I missing anything here? Any help would be appreciated.


回答1:


hmm, finally the issue was resolved by enabling the dns hostname



来源:https://stackoverflow.com/questions/52867629/intranet-communication-issue-in-ecs-with-route53-in-private-subnet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!