TAK-OS DNS reads Services, Ingresses and optional ExternalIPBindings across all
namespaces. Annotations control generated records only; they do not change routing,
Ingress reconciliation, static DNSRecords or records imported from other sites.
Annotations and spec.ingressClassName are re-read on each complete local refresh.
No restart or new environment setting is required.
Supported annotations
All values below are strings under metadata.annotations.
| Annotation | Objects | Meaning |
|---|---|---|
dns.tak-os.org/ignore: "true" |
Service, Ingress, ExternalIPBinding | Silently skip this object's generated contributions. Ignoring a Service also suppresses bindings referencing that Service in the same namespace and its ingress-controller class mappings. |
dns.tak-os.org/ingress: "true" |
Service | Opt this Service into the ingress-controller target registry. Also requires a class annotation and at least one published Service/binding external address. |
dns.tak-os.org/ingress-class: "tak-os" |
Service | Exact Ingress class name mapped to this Service. A comma-separated list, such as "tak-os, internal", maps multiple classes to the same Service; surrounding whitespace and empty entries are ignored. |
Boolean annotations activate only for the exact string "true"; missing, "false"
and other values do not activate them. Ignoring a Service does not ignore a Service
of the same name in another namespace. Ignoring one binding leaves other bindings
and the Service's own spec.externalIPs eligible. Ignoring an Ingress leaves the
controller Service and other Ingresses eligible. A successful refresh removes the
ignored object's former contributions without logging a skip warning. Other source
owners can still supply the same DNS name.
Ingress controller mapping
Annotate the controller's Service, not its Deployment, binding or IngressClass:
apiVersion: v1
kind: Service
metadata:
name: tak-os-ingress
namespace: tak-os-ingress
annotations:
dns.tak-os.org/ingress: "true"
dns.tak-os.org/ingress-class: "tak-os"
spec:
selector:
app: tak-os-ingress
ports:
- {name: http, port: 80, targetPort: 80}
- {name: https, port: 443, targetPort: 443}
externalIPs: [192.0.2.10, 192.0.2.11]
The example uses legacy Service externalIPs. With TAK-OS External IP Operator, omit
that field and use an ExternalIPBinding referencing this Service instead; keep the
annotations on the Service. DNS uses declared addresses without readiness/port
filtering, as described in generated records.
Bindings use spec.serviceRef.name and their namespace for the DNS owner, regardless
of the binding resource's own name. Ignored bindings cannot provide exposure for a
controller mapping. No mapping is created until there is an eligible address.
With DOMAIN=stg.tlspu.com, the target is
tak-os-ingress.tak-os-ingress.stg.tlspu.com.. Controller names and namespaces are
otherwise arbitrary; DNS does not infer controller identity from labels or names.
The class annotation refers to the IngressClass name, not its spec.controller
identifier. The DNS reader matches names directly and does not read IngressClass
objects or apply a default class.
Each class must map to one exposed Service. If two eligible Services claim the same
class, the entire candidate refresh is rejected with an ambiguous ingress class
error containing the class and Service DNS names. The existing accepted snapshot
remains available; no list-order winner is chosen. Correct the class annotations or
ignore the unwanted Service to resume publication. Multiple classes can map to one
Service, and independent classes can map to different Services.
Ingress host records
An Ingress must explicitly select a mapped class:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: website
namespace: websites
spec:
ingressClassName: tak-os
rules:
- host: www.stg.tlspu.com
http:
paths:
- path: /
pathType: Prefix
backend:
service: {name: website, port: {number: 80}}
This produces:
www.stg.tlspu.com. 60 IN CNAME tak-os-ingress.tak-os-ingress.stg.tlspu.com.
The CNAME belongs to ingress/<UID>. Its TTL comes from the longest matching host
zone, or defaults to 60 seconds. Each distinct nonempty rule host gets a CNAME;
duplicates within one Ingress collapse, wildcard hosts remain wildcard owners, and
different Ingresses retain independent source ownership. A host equal to the target
Service DNS name uses its existing address records instead of creating a self-alias.
Ingresses without spec.ingressClassName are not processed. The deprecated
kubernetes.io/ingress.class annotation does not substitute for the field, and a
cluster's default IngressClass is not inferred. Ingresses naming an unmapped class
are also skipped. This includes classless cert-manager HTTP solver Ingresses.
Ingress status/load-balancer addresses and EXTIPS are not used for generation.
Queries for A/AAAA follow the CNAME into the controller Service records already in the cache. Changing its Service or binding addresses updates those answers without copying addresses into every Ingress contribution. An ignore toggle, class change, withdrawn external address or object deletion converges on the next successful refresh. Failed API lists retain the last complete accepted snapshot.
Existing record conflict rules still apply: addresses mask CNAMEs in the same owning zone, distinct CNAME targets for the same owner conflict, and an SOA/NS-bearing zone apex cannot be a CNAME. Coordinate common host names across peer sites so their alias targets agree.
