Route 53 Bootstrapping
Your Kubernetes cluster requires that there be a "hosted zone" in Amazon Route 53 which is an Amazon service that acts as a domain registrar and DNS management system. When a Kubernetes cluster is provisioned a number of DNS records are created such as "api.$CLUSTER_NAME.$DOMAIN" (e.g.
api.foobar.example.org
- Get a domain (either buy one or reuse an existing domain (We strongly recommend buying a new one or reusing an unused one that already belongs to your Route 53 account.
- Ensure DNS is setup properly.
- Update with the appropriate information.
config.json
Getting a Domain
There are a number of ways to get a domain on Route53 and it's outside of the scope of this document to show you the precise steps but in general there are three options:
- Purchase an unowned domain
- Transfer an existing domain you own from a different registrar to Route53
- Use a domain already in Route53
Configuring the Domain
If you have the domain under Route53 control either because it already existed or because it was purchased or transferred then all you need to do is modify
config.json
"domain_name": "${YOUR_DOMAIN_NAME}"
{ "domain_name": "example.org", "another_key_0": null, "another_key_1": null }
FAQ
Q: Can I use a subdomain of an existing domain as the base domain (e.g.
k8s.example.org
api.foobar.k8s.example.org
A: Yes, but it's beyond the scope of this guide. An outline of the process is:
- Create another hosted zone in Route53 for the subdomain (e.g. )
k8s.example.org
- Create a new NS record on the "parent" zone and add the name servers for
example.org
into this record.k8s.example.org
Questions?
We’re happy to help! Learn more about microservices, start using our open source Edge Stack API Gateway, or contact our sales team.