简体   繁体   中英

AWS Route 53 to ALB managed by AWS Load Balancer Controller

I have a domain for my new application, lets call it: app.example.com. Thats a domain registered outside my AWS account.

The application is running on AWS EKS:

  • Two Deployments
  • Two Services
  • One Ingress

Quite simple I guess. Those pods are running on Fargate, so I managed to configure the AWS Load Balancer controller who creates an Application Load Balancer when an Ingress is created. Then, there is also an external-dns pod configured pointing to a hosted zone on Route 53 (example.com).

Now, each time an Ingress is re-deployed, AWS LBC re-creates the ALB with a different DNS domain, and external-dns is adding records on the hosted zone like: Route 53 托管区域记录

If I go to the ALB DNS, the application can be reached, but if I go from the domain app.example.com it can´t. In a close future, my idea is to use a Blue/Green deployment and that will change the DNS of the ALB, so I have to think of a solution having into account the next step.

Maybe it´s something about the external domain, I mean, AWS is not hosting the domain but I might need some kind of permission or even configure the domain from the other page?

Solved, what I was missing is reading in depth the documentation of AWS. Route 53 provides a set of Name Servers for hosted zones. On the external registrar, I had to create NS records pointing to the NS of AWS. More info:

SafeNames

1and1

GoDaddy

AWS Wiki - Step 7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM