public-dns (Fix): own-named RBAC - the two external-dns installs collided on cluster-scoped names #1763

Merged
ginjiruu merged 1 commit from public-dns-rbac into main 2026-11-20 22:30:27 +00:00
Owner

Symptoms since yesterday: public-dns-records KS never Ready (health check timed out on DNSEndpoint status InProgress, observedGeneration frozen at 1), and the 7 retired public CNAMEs (actual keep paper vm grafana gadmin admin.media) + their edns TXT markers still live in the Cloudflare zone (verified via the API) although the DNSEndpoint spec dropped them. Root cause, all verified live: both external-dns HelmReleases (public-dns cloudflare, internal-dns pdns) render chart-default cluster-scoped names ClusterRole external-dns and ClusterRoleBinding external-dns-viewer; whoever applies last owns them (helm meta.helm.sh annotations now say internal-dns) and the ClusterRoleBinding has exactly one subject - internal-dns/external-dns. The public SA public-dns/external-dns has ZERO permissions (auth can-i list dnsendpoints -> no); its pod logs the startup config and then falls silent, never reaching a plan. Fix: rbac.create=false on the public HelmRelease, plus an explicit ClusterRole public-dns-external-dns + binding (rules mirror chart 1.24.0) applied by the same kustomization. Helm will not delete the objects the internal release owns (ownership guard), so internal-dns is untouched. Post-merge expectation: public external-dns regains access, deletes the 7 retired records, sets DNSEndpoint observedGeneration/status, and public-dns-records goes Ready.

Symptoms since yesterday: public-dns-records KS never Ready (health check timed out on DNSEndpoint status InProgress, observedGeneration frozen at 1), and the 7 retired public CNAMEs (actual keep paper vm grafana gadmin admin.media) + their edns TXT markers still live in the Cloudflare zone (verified via the API) although the DNSEndpoint spec dropped them. Root cause, all verified live: both external-dns HelmReleases (public-dns cloudflare, internal-dns pdns) render chart-default cluster-scoped names ClusterRole external-dns and ClusterRoleBinding external-dns-viewer; whoever applies last owns them (helm meta.helm.sh annotations now say internal-dns) and the ClusterRoleBinding has exactly one subject - internal-dns/external-dns. The public SA public-dns/external-dns has ZERO permissions (auth can-i list dnsendpoints -> no); its pod logs the startup config and then falls silent, never reaching a plan. Fix: rbac.create=false on the public HelmRelease, plus an explicit ClusterRole public-dns-external-dns + binding (rules mirror chart 1.24.0) applied by the same kustomization. Helm will not delete the objects the internal release owns (ownership guard), so internal-dns is untouched. Post-merge expectation: public external-dns regains access, deletes the 7 retired records, sets DNSEndpoint observedGeneration/status, and public-dns-records goes Ready.
Sign in to join this conversation.
No description provided.