public-dns (Update): per-app opt-in, public apps only #1749

Merged
ginjiruu merged 6 commits from public-dns-per-route into main 2026-11-20 02:45:09 +00:00
Owner

Public DNS names move from the one central list to the apps that serve them (#1708), and only the apps that stay public opt in. A name is public when its route carries the label dns.animeteamspeak.moe/public: "true". Nothing is removed from Cloudflare by this PR.

How it works

  • external-dns (clusters/mini/public-dns/external-dns): sources crd, gateway-httproute, gateway-tlsroute; labelFilter: dns.animeteamspeak.moe/public=true; ListenerSet support on.
  • gateway/cilium-default carries external-dns.kubernetes.io/target: animeteamspeak.moe, so every published route is a CNAME to the apex. external-dns reads targets only from Gateways and ListenerSets, never from routes.
  • The central DNSEndpoint stays, labelled, for now. Its entries go once each app is either published from its route (public) or moved to an internal name.

Public (labelled here)

Name Object How
llm ai/radiance-edge route label (ai/radiance is on the internal agentgateway, not labelled)
exfil exfil/exfil route label
receiver.mini flux-system/flux-receiver route label
git forgejo/forgejo HelmRelease postRenderer (the chart has no route-labels key)
cdn cdn/cdn route label
media media/media-animeteamspeak-moe (Jellyfin) route label (admin.media is not: it moves internal)
carwash-frigate carwash-frigate/carwash-frigate route label
foundry12/13/14 foundry1x/foundry label in the shared base
push gotify/gotify route label
photos immich/immich route label
search searxng/searxng route label
matrix tuwunel/tuwunel route label
turn DNSEndpoint tuwunel/public-dns no route (TURN rides a port forward)
auth kanidm/kanidm route label. Not on the original list, kept because carwash-frigate, searxng, tuwunel and forgejo log in through Kanidm

share (PrivateBin) also stays public, through the central list: its route is in lab/portable-cluster-argocd-apps, not here.

Everything else is not labelled and moves to internal names in later PRs. Until then the central list keeps those names resolving.

generic-templates/* is shared with portable; the label is inert there.

Checks

  • Every changed directory builds (kustomize build); the pre-push gate passed.
  • The renders done for the full 36-name version (six sub-agents, one per domain) still hold for these 13 apps; this change only reverted the others.

After merge

  1. external-dns log: these names appear from their routes. Records are unchanged, since route and central list produce the same CNAME.
  2. The internal-name PRs follow; each app's public entry leaves the central list when it moves.
Public DNS names move from the one central list to the apps that serve them (#1708), and only the apps that stay public opt in. A name is public when its route carries the label `dns.animeteamspeak.moe/public: "true"`. Nothing is removed from Cloudflare by this PR. ## How it works - **external-dns** (`clusters/mini/public-dns/external-dns`): sources `crd`, `gateway-httproute`, `gateway-tlsroute`; `labelFilter: dns.animeteamspeak.moe/public=true`; ListenerSet support on. - **`gateway/cilium-default`** carries `external-dns.kubernetes.io/target: animeteamspeak.moe`, so every published route is a CNAME to the apex. external-dns reads targets only from Gateways and ListenerSets, never from routes. - **The central DNSEndpoint stays, labelled, for now.** Its entries go once each app is either published from its route (public) or moved to an internal name. ## Public (labelled here) | Name | Object | How | |---|---|---| | llm | `ai/radiance-edge` | route label (`ai/radiance` is on the internal agentgateway, not labelled) | | exfil | `exfil/exfil` | route label | | receiver.mini | `flux-system/flux-receiver` | route label | | git | `forgejo/forgejo` | HelmRelease postRenderer (the chart has no route-labels key) | | cdn | `cdn/cdn` | route label | | media | `media/media-animeteamspeak-moe` (Jellyfin) | route label (`admin.media` is not: it moves internal) | | carwash-frigate | `carwash-frigate/carwash-frigate` | route label | | foundry12/13/14 | `foundry1x/foundry` | label in the shared base | | push | `gotify/gotify` | route label | | photos | `immich/immich` | route label | | search | `searxng/searxng` | route label | | matrix | `tuwunel/tuwunel` | route label | | turn | DNSEndpoint `tuwunel/public-dns` | no route (TURN rides a port forward) | | auth | `kanidm/kanidm` | route label. Not on the original list, kept because carwash-frigate, searxng, tuwunel and forgejo log in through Kanidm | `share` (PrivateBin) also stays public, through the central list: its route is in `lab/portable-cluster-argocd-apps`, not here. Everything else is not labelled and moves to internal names in later PRs. Until then the central list keeps those names resolving. `generic-templates/*` is shared with `portable`; the label is inert there. ## Checks - Every changed directory builds (`kustomize build`); the pre-push gate passed. - The renders done for the full 36-name version (six sub-agents, one per domain) still hold for these 13 apps; this change only reverted the others. ## After merge 1. external-dns log: these names appear from their routes. Records are unchanged, since route and central list produce the same CNAME. 2. The internal-name PRs follow; each app's public entry leaves the central list when it moves.
external-dns reads HTTPRoutes/TLSRoutes and DNSEndpoints carrying
dns.animeteamspeak.moe/public=true (label filter), ListenerSets on;
gateway/cilium-default carries the target annotation so every route record
is a CNAME to the apex. The central DNSEndpoint gets the label too and
stays until each app route publishes its own name.
36 names now opt in from their own route (manifest label, chart value,
forgejo postRenderer, grafana/VMAuth CR fields, k8s-hub overlay patches)
or a labelled DNSEndpoint in the app dir (turn, frigate). 7 names whose
objects are not in this repo stay in the central list.
Public: llm, exfil, receiver.mini, git, cdn, carwash-frigate,
foundry12-14, push, photos, search, matrix, turn, and auth (Kanidm: the
public apps log in through it). Everything else moves to internal names.
ginjiruu changed title from public-dns (Update): per-app opt-in for public DNS names to public-dns (Update): per-app opt-in, public apps only 2026-11-20 02:22:14 +00:00
Sign in to join this conversation.
No description provided.