Skip to content

CRD unable to create DNSEndpoint of record types other than A or CNAME #1647

Closed
k8gb-io/k8gb
#169
@mikelorant

Description

What happened:

Applied the following DNSEndpoint resource:

apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
  name: examplednsrecord
spec:
  endpoints:
  - dnsName: foo.bar.com
    recordTTL: 180
    recordType: TXT
    targets:
    - "test"

This results in no resource created. Even in debug mode, there is no object even mentioned.

As soon as I kubectl edit dnsendpoint examplednsrecord to change it from TXT to CNAME I see the following output.

{"level":"debug","msg":"Adding foo.bar.com. to zone ffxblue.io. [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"debug","msg":"Adding foo-txt.bar.com. to zone ffxblue.io. [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"info","msg":"Desired change: CREATE foo.bar.com CNAME [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"info","msg":"Desired change: CREATE foo-txt.bar.com TXT [Id: /hostedzone/..]","time":"2020-06-25T08:40:24Z"}

What you expected to happen:

It is expected that the DNSEndpoint should be able to create all record types. The comments in the source code specifically list SRV and TXT records. My initially attempts were a MX record which also failed.

Attempting to use the providerSpecific options to create the exact record also did not work.

How to reproduce it (as minimally and precisely as possible):

Apply the YAML I provided at the start of this issue and change the dnsName to be a valid zone that external-dns is managing.

All my tests have been using AWS. Uncertain if this is an issue with other providers.

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): 0.7.2
  • DNS provider: AWS
  • Others:
    • The option preferCNAME enabled.
    • Policy set to sync.
    • Using the Bitnami Helm chart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions