fix(external-dns): unique txt-owner-id per cluster to stop record deletion - #35
Merged
Merged
Conversation
…etion
external-dns runs on every cluster (the infra appset's clusters:{} generator)
and all instances shared txtOwnerId=dieubernetes against the single shared
dieu.dev Cloudflare zone with policy=sync. Each instance only sees its own
cluster's HTTPRoutes, so clusters without a given route treated the records
another cluster created (same owner-id) as "mine but undesired" and deleted
them. In practice: stage created recipes/analytics/changes every reconcile,
platform deleted them every reconcile, and the records never persisted, so
the hostnames never resolved to the gateway.
Give each cluster a unique owner-id so each manages only its own records:
- stage -> dieubernetes-stage
- platform -> dieubernetes-platform
prod is not a registered ArgoCD cluster yet; add the same override when it is.
Fixes #34
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This was referenced Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #34.
Problem
external-dns runs on every cluster (the infrastructure appset's
clusters: {}generator) and all instances shared
txtOwnerId: dieubernetesagainst the singleshared
dieu.devCloudflare zone with--policy=sync. Each instance only sees itsown cluster's HTTPRoutes, so a cluster without a given route treats the records
another cluster created (same owner-id) as "mine but undesired" and deletes them.
Observed: stage created
recipes/analytics/changes(A, AAAA, ownership TXT) everyreconcile; platform deleted the same records every reconcile. The records never
survived a cycle, so the hostnames never resolved to the gateway. Both operations
succeed, so nothing was logged as an error.
Fix
Give each cluster a unique owner-id via a per-cluster override, so each instance
manages only its own records:
clusters/stage-do-atl1/overrides/external-dns.yaml->dieubernetes-stageclusters/platform-do-atl1/overrides/external-dns.yaml->dieubernetes-platformprod is not a registered ArgoCD cluster yet, so it runs no external-dns; add the
same override (
dieubernetes-prod) when it is registered.Verify after merge
DELETEforrecipes/analytics/changes.a-/aaaa-TXT records for those hosts persist in Cloudflare,pointing at the Cilium gateway IP, proxied.
dig recipes.dieu.devresolves; the sites become reachable by hostname.Notes
preview.dieu.devfor the portfolio (Revamp dieu.dev as a platform/SRE/infra portfolio #33).