Skip to content
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, Azure Private-DNS, combine-fqdn-annotation produce douplicate IP #4553

Open
chris8205 opened this issue Jun 17, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@chris8205
Copy link

What happened:
If fqdn-template is used, and combine-fqdn-annotation is set,
external dns would like to update the A record to the same ip ex: A ---> IPv4 --> 100.50.0.48;100.50.0.48
but a record can't get multiple time the same ip

seems, that there is a "filter" missing to prevent if the template match the service annotation:
external-dns.alpha.kubernetes.io/hostname: mytestworkload.mytestnamespace.myzone

external-dns-privatezone-xxxxxxxxxxxxxx {"level":"error","msg":"Failed to update A record named 'mytestworkload.mytestnamespace' to '100.50.0.48;100.50.0.48' for Azure Private DNS zone 'myzone': PUT https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxxxxxxxx/providers/Microsoft.Network/privateDnsZones/myzone/A/mytestworkload.mytestnamespace\n--------------------------------------------------------------------------------\nRESPONSE 400: 400 Bad Request\nERROR CODE: BadRequest\n--------------------------------------------------------------------------------\n{\n "code": "BadRequest",\n "message": "The list of record sets of type 'A' may not contain multiple entries with the same 'ipv4Address'."\n}\n--------------------------------------------------------------------------------\n","time":"2024-06-17T07:40:20Z"}

  • External-DNS version (use external-dns --version): external-dns:v0.14.1

  • DNS provider: azure-private-dns

  • Others:

      --log-level=debug
      --log-format=json
      --interval=1m
      --source=service
      --source=ingress
      --policy=sync
      --registry=txt
      --txt-owner-id=myowner
      --domain-filter=myzone
      --provider=azure-private-dns
      --fqdn-template={{.Name}}.{{.Namespace}}.myzone
      --ingress-class=myinternal-ingress-ctrl
      --service-type-filter=LoadBalancer
      --combine-fqdn-annotation
    
@chris8205 chris8205 added the kind/bug Categorizes issue or PR as related to a bug. label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant