Silly issue with multiple domains and external-dns
When using multiple domains, don't forget to also update zones
Toni PetrinaPublished on 2023-06-21•1 min read
I am using external-dns for automatically creating DNS entries on Cloudflare from ingresses and services running in a cluster. The setup worked well enough when I used only one domain - but now I wanted to add a bunch of other domains.
Adding domains is pretty straightforward: just spam --domain-filter=
. But
after deploying it - no domain records were updated.
So, two problems:
- The Cloudflare token was only for the zone originally used - added others
- The zone was also passed as a
-zone-id-filter
argument - added others
That's really it! For every domain in Cloudflare do the following:
- Update API Token
DNS:Edit
entries (let's not comment on CF and edit functionality) - Add the domain as another
--domain-filter=
entry - Add the zone as another
-zone-id-filter
entry