How to use a custom Hosted Zone

Issue

  • How we can use our own custom Hosted Zone in route53?

Environment

Resolution

The private route53 hosted zone matches by default the domain name defined for the cluster, but that could be changed to be user-provided in order to cover a larger domain, CJE cluster-init operation create a hosted zone depending of cluster type:

  • When creating an internal-only cluster, no route53 hosted zone is created nor needed (since all the traffic is already internal to the VPC)
  • When creating a regular cluster, route53 records are required to provide the loopback between services and still allow to restrict user access to the cluster.

In order to use an existing private hosted zone, you have to set the property route53_private_zone_name in the cluster-init.config file before to applying the cluster-init operation.

[tiger]

...

## Route53 Private Hosted Zone
#
# A private hosted zone is used to allow loopbacks through the cluster without going through public network interfaces.
# By default, the cluster will create a private hosted zone matching the given domain name, however if there is
# already a private hosted zone for the cluster vpc, its name should be provided below.
#
# Example with domain_name = cje.example.com
# By default private hosted zone created by CJE would be using the name 'cje.example.com'.
# If there is already a private hosted zone for 'example.com' in the cluster VPC
# then 'example.com' should be provided below.
#
# route53_private_zone_name = private_zone_name
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.