-
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
Alias to CNAME record type changes failed #2106
Comments
@moskitone so the old records are ALIAS, and you are trying to convert them to plain CNAME? external-dns never used to check record types at all up until #1867, so I don't see how it could have worked prior either. external-dns can't currently differentiate between alias and cname records, so the --aws-prefer-cname flag is used to tell it what to use. If you were using ALIAS then add that flag, it will break unfortunately. To fix that, we'd need to introduce the concept of aliases more generically in external-dns. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs 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 and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
New feature provided by #1867 does not work with some EKS endpoints.
We have bunch of ingresses covered by nginx-ingress and AWS NLB.
In current setup we have lots of A(alias) records in route53 zones. After upgrading external-dns to 8.0.0 and setting --aws-prefer-cname nothing has changed.
We can see lots of records in logs like
time="2021-05-26T12:53:22Z" level=debug msg="Adding bbb.aaaaaa.io. to zone aaaaaa.io. [Id: /hostedzone/ZYaaaaaa]"
time="2021-05-26T12:53:23Z" level=info msg="Desired change: UPSERT bbb.aaaaaa.io CNAME [Id: /hostedzone/ZYaaaaaa]"
time="2021-05-26T12:53:23Z" level=error msg="InvalidChangeBatch: [RRSet of type CNAME with DNS name bbb.aaaaaa.io. is not permitted as it conflicts with other records with the same DNS name in zone aaaaaa.io.]\n\tstatus code: 400, request id: 09e0b116-..."
time="2021-05-26T13:00:36Z" level=debug msg="Endpoints generated from ingress: NS/INGRESS: [bbb.aaaaaa.io 0 IN CNAME ae...-4da9....elb.us-west-2.amazonaws.com [] bbb.aaaaaa.io 0 IN CNAME ae...-4da9....elb.us-west-2.amazonaws.com []]"
What you expected to happen:
Old A record is replaced with new CNAME
Environment:
external-dns --version
): 8.0.0The text was updated successfully, but these errors were encountered: