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

Azure Provider not working for second level subdomains #4937

Open
philipp-durrer-jarowa opened this issue Dec 6, 2024 · 1 comment
Open
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@philipp-durrer-jarowa
Copy link

Name and Version

external-dns 0.15.0

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Use the Azure integration, and have a DNS zone e.g. example.com
  2. Try to create an ingress with an external-dns annotation for hostname: my.sub.example.com

Are you using any custom parameters or values?

provider: azure
azure:
    resourceGroup: "my-rg"
    tenantId: "XXXXX"
    subscriptionId: "XXXXX"
    useManagedIdentityExtension: true
txtOwnerId: "my-aks"
policy: sync # to cleanup old entries!
metrics:
  enabled: true
domainFilters:
- example.com

What is the expected behavior?

I expect external-dns to create a new A record my.sub. pointing to the ingress IP, since example.com is in the domainfilter list and my.sub.example.com is a valid domain it should be created in the Azure DNS Zone of example.com

What do you see instead?

external-dns is ignoring my.sub.example.com until I add sub.example.com to the domainfilters but then it obviously complains about the lack of subdns-zone sub.example.com (which I really don't want to create).

What I think is needed is to adapt the zoneMatchParent feature from the AWS provider for Azure so external-dns can create the two-level subdomain entry. Alternatively, the domainfilter logic could be more explicit and when *.example.com is set, to accept all subdomains of that domain. Or as a rather ugly alternative, there should be a domain -> zone map where I could say sub.example.com -> example.com

@philipp-durrer-jarowa
Copy link
Author

Anybody home??

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