From 6970972b6d2c1397e40ef50dee26ef71ee700827 Mon Sep 17 00:00:00 2001 From: thiagoluiznunes Date: Tue, 6 Feb 2024 15:20:02 -0300 Subject: [PATCH] docs(aws): refactor explanation of aws-zone-match-parent --- docs/tutorials/aws-sd.md | 11 ----------- docs/tutorials/aws.md | 9 +++++++++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/tutorials/aws-sd.md b/docs/tutorials/aws-sd.md index c0b2d0f6e..053a34449 100644 --- a/docs/tutorials/aws-sd.md +++ b/docs/tutorials/aws-sd.md @@ -225,17 +225,6 @@ metadata: spec: ... ``` - -## Enable sub-domain hosted zone match -The aws-zone-match-parent flag extends external-dns to support sub-domain matching using its parent domain. - -```yaml -## hosted zone domain: domain.com ---domain-filter=x.sub-domain.domain.com,sub-domain.com ---aws-zone-match-parent -``` - - This will set the TTL for the DNS record to 60 seconds. diff --git a/docs/tutorials/aws.md b/docs/tutorials/aws.md index 33204ba71..95afeb74c 100644 --- a/docs/tutorials/aws.md +++ b/docs/tutorials/aws.md @@ -562,6 +562,15 @@ Annotations which are specific to AWS. `external-dns.alpha.kubernetes.io/aws-target-hosted-zone` can optionally be set to the ID of a Route53 hosted zone. This will force external-dns to use the specified hosted zone when creating an ALIAS target. +### aws-zone-match-parent +`aws-zone-match-parent` allows support subdomains within the same zone by using their parent domain, i.e --domain-filter=x.example.com would create a DNS entry for x.example.com (and subdomains thereof). + +```yaml +## hosted zone domain: example.com +--domain-filter=x.example.com,example.com +--aws-zone-match-parent +``` + ## Verify ExternalDNS works (Service example) Create the following sample application to test that ExternalDNS works.