-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external-dns creates TXT records for CNAMEs, when using Alias in AWS Route 53 #4618
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This seems similar to #3868 |
/remove-lifecycle rotten |
Also observe this behaviour and interested in the reason for it happening. Currently working our way through external-dns upgrade from Our external-dns is managing many thousands of records in over 100 hosted zones and it seems we may have a bit of a manual clean up of 'old' external-dns managed TXT records post-upgrade. |
@romanlehner There are two TXT records created because there are two TXT heritage record formats. The old record format does not contain the record type. The new record format prefixes the domain with Line 217 in 850b973
I recommend a However, AFAIK the new-format record is always created, and the @sj-williams This behavior is intentional, though this comment on #3868 (#3868 (comment)) mentions there are noncosmetic effects so maybe it is an issue that could be resolved (though I think the leftover heritage records they mention might happen any time you change between record types, not just between A and A-Alias, so it may be an expected behavior). The reason for Alias records being denoted as CNAME records in the TXT heritage records looks to be a backwards compatibility decision, since Alias records used to be handled internally to external-dns as CNAME records. When the internal record representation for Alias records changed to be A record in #3910, the decision was made that I think the question in the OP is answered
@nipr-jdoenges I'd suggest closing this as a duplicate and tracking this issue in #3868 |
I would tend to agree, there appear to be several issues about this same behavior that should be consolidated, although I'm neither the reporter of any of the issues nor a contributor to the project. |
What happened:
When I create a kubernetes service object of type
Loadbalancer
that creates an AWS NLB, then external-dns creates anA
record with an Alias to the NLB DNS, and the respectiveTXT
record to reference theA
record. But it also createsTXT
records forCNAME
records.Example:
AWS hosted zone:
mydomain.com
service Annotation:
external-dns.alpha.kubernetes.io/hostname: app.mydomain.com
Created records in AWS route 53:
The question is why it is doing so. It is not really degrading any functionality, but is an unexpected behavior.
What you expected to happen:
There shouldn't be a
TXT
record forCNAMES
, but only theA
record for theAlias
:How to reproduce it (as minimally and precisely as possible):
https://kubernetes-sigs.github.io/external-dns/v0.14.2/tutorials/aws-load-balancer-controller/
Anything else we need to know?:
Environment: dev
external-dns --version
): 0.14.2external-dns deployment config args:
The text was updated successfully, but these errors were encountered: