kubernetes-sigs / external-dns

Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services
Apache License 2.0
7.64k stars 2.55k forks source link

Mess in Linode DNS #3998

Closed boskiv closed 11 months ago

boskiv commented 11 months ago

What happened: A lot of duplicate TXT record (every run creates record) Screenshot 2023-10-20 at 08 46 06

Erros in logs when creating CNAME records

external-dns-7b8b6d66bd-mwpsz external-dns time="2023-10-20T05:44:15Z" level=info msg="Creating record." action=Create record=nats type=CNAME zoneID=2847511 zoneName=nl-ams.prod.linode.spreadfighter.cloud
external-dns-7b8b6d66bd-mwpsz external-dns time="2023-10-20T05:44:15Z" level=error msg="Failed to Create record: [400] [name] Record conflict - CNAMES must be unique" action=Create record=nats type=CNAME zoneID=2847511 zoneName=nl-ams.prod.linode.spreadfighter.cloud

What you expected to happen: No errors, No mess How to reproduce it (as minimally and precisely as possible): Setup k8s in Linode Add Domain Install external dns with next values

  values:
    image:
      registry: registry.k8s.io
      repository: external-dns/external-dns
      tag: v0.13.6
    logLevel: debug
    provider: linode
    txtPrefix: sf-
    linode:
      apiToken: xzxxxczxczxczxczxczxczxczxc

Anything else we need to know?:

Environment:

boskiv commented 11 months ago

Looks like #3903 was not included in 0.13.6. Becasue debug message should be Warn("Records found which should not exist. Not touching it.") But it still .Warn("Records found which should not exist")

boskiv commented 11 months ago

Ok, now it's fine https://gist.github.com/boskiv/f05a94991067c2bd529dfbe760f99817 I took recent nightly build from https://console.cloud.google.com/gcr/images/k8s-staging-external-dns/global/external-dns?tab=vulnz and now everything looks fine.