O'Reilly logo

Docker and Kubernetes for Java Developers by Jaroslaw Krochmalski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The subdomain of the domain hosted on AWS

If you have your domain bought and hosted on AWS, but would like to use the subdomain for the cluster, you will need to create a new hosted zone in Route 53 and then delegate the new route to this new zone. This is basically about copying the NS servers of your subdomain up to the parent domain in Route 53. Let's assume our domain is mydomain.com; we need to get some information first. Note that the jq command-line tool comes in handy now, when executing aws commands. First, we need the ID of our main parent zone:

$ aws route53 list-hosted-zones | jq '.HostedZones[] \ 
| select(.Name=="mydomain.com.") | .Id'  

To create a new subdomain, execute the following:

$ aws route53 create-hosted-zone --name ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required