Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions k8s/clusters/prod/bootstrap/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
data:
cluster_name: prod
domain: platform.devantler.tech
# Escaped form of domain for external-dns --regex-domain-filter.
external_dns_domain_regex: 'platform\.devantler\.tech'
github_app_client_id: Iv23limfvbk93bAXZI6b
issuer_group: cert-manager.io
issuer_kind: ClusterIssuer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
- "${cloudflare_zone}"
extraArgs:
- --exclude-target-net=10.0.0.0/8
# Restrict Gateway HTTPRoute-derived records to this cluster's delegated
# DNS subtree while domainFilters still selects the Cloudflare zone apex.
- --regex-domain-filter=^([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)*${external_dns_domain_regex}$

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Keep the Cloudflare apex discoverable

At the pinned ExternalDNS v0.21.0, setting --regex-domain-filter switches the shared domain filter to regex mode, so the domainFilters value above is ignored. The Cloudflare provider applies that same filter to zone.Name before it reads or applies records. This pattern accepts platform.devantler.tech and its descendants but rejects the actual Cloudflare zone apex devantler.tech, leaving Zones() empty and preventing reconciliation for every managed record. Configure an exact zone-ID filter so provider discovery bypasses the record-name regex (without publishing the identifier), or otherwise prove an equivalent boundary; add a rendered/behavioral guard showing the apex zone is discovered while sibling subdomains outside the delegated subtree are rejected.

- --cloudflare-proxied
env:
- name: CF_API_TOKEN
Expand Down
Loading