Most common error using external-dns
Record is not created in provider
For a record not being created in your provider, two cases may occur:
Wrong Credentials
: Check that the domain you are referencing to create theRECORD
belongs to the credential account.Incorrect domain filter
: It could be that the filter that was applied to external-dns is not correct for your applications
Solving
Check the values of the applied helm chart and verify that the values match what was configured:
➜ helm get values external-dns -n YOUR_NAMESPACE
USER-SUPPLIED VALUES:
domainFilters:
- test.vkpr.net
env:
...
If the filter is applied to a domain to which the application does not belong, it will not be created.
Record is not propagating
For a record not being propagated in the Internet, two cases may occur:
Propagation time
: there is a propagation time for the DNS to be available on the Internet, it must wait a maximum of 10 minutes for this propagation to be done.Sync Policy
: In external-dns there is a policy that synchronizes Kubernetes resources to the provider, but it sometimes ends up causing problems in the current version by deleting the records and recreating them. This affects the propagation time and it is never possible to access it.
Solving
Check if the DNS has been propagated:
➜ dig -t A whoami.test.vkpr.net +short
44.207.0.117
35.11.194.92
➜ dig -t txt whoami.test.vkpr.net +short
"heritage=external-dns,external-dns/owner=vkpr,external-dns/resource=ingress/vkpr/whoami"