kubernetes-sigs / external-dns

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

External DNS, Azure Private-DNS, combine-fqdn-annotation produce douplicate IP #4553

Open chris8205 opened 4 months ago

chris8205 commented 4 months ago

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"}

k8s-triage-robot commented 1 month ago

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

k8s-triage-robot commented 3 weeks ago

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