docs(aws): refactor explanation of aws-zone-match-parent

This commit is contained in:
thiagoluiznunes 2024-02-06 15:20:02 -03:00
parent 5a0263b510
commit 6970972b6d
2 changed files with 9 additions and 11 deletions

View File

@ -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.

View File

@ -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.