问题
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