public-dns (Fix): own-named RBAC - the two external-dns installs collided on cluster-scoped names #1763
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1763
Loading…
Reference in a new issue
No description provided.
Delete branch "public-dns-rbac"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.