A platform team exposes a new API through Envoy Gateway. The HTTPRoute is in the cluster, the load balancer has an address, and the application responds in a direct test. Users still cannot reach api.apps.example.org. The DNS zone is missing the corresponding record.
ExternalDNS automates that step. The controller reads selected Kubernetes resources, derives the desired DNS records, and reconciles them with a supported DNS provider. We offer ExternalDNS as a managed app on Kubernetes in Germany. Your platform team decides which applications and domains the controller manages. Managed ExternalDNS at ayedo · ExternalDNS sources
The route supplies the name and the gateway supplies the address
The platform team provides a gateway named public in the edge namespace. Its HTTPS listener allows routes from the shop namespace and accepts hostnames under apps.example.org. The application team creates this HTTPRoute:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: shop-api
namespace: shop
spec:
parentRefs:
- name: public
namespace: edge
sectionName: https
hostnames:
- api.apps.example.org
rules:
- backendRefs:
- name: shop-api
port: 8080
For HTTP routing, the gateway accepts requests for api.apps.example.org on the https listener and forwards them to the shop-api Kubernetes Service. For DNS, ExternalDNS uses the gateway-httproute source to read the route hostname and account for the hostnames the listener allows. In the absence of an explicit target override, it takes the DNS target from the parent gateway's status.addresses. An IPv4 target typically yields an A record and an IPv6 target an AAAA record. For a target hostname, the record type also depends on the provider. Gateway API route sources in ExternalDNS
The ayedo external-dns Polycrate block supports Gateway API routes and documents settings for the domain filter, owner ID, and synchronization interval. It also supports the Polycrate Operator webhook as a provider backend. The ayedo domains and DNS documentation explains how the Polycrate API distinguishes between zones hosted on ayedo PowerDNS and zones at external providers. ExternalDNS in the ayedo Polycrate Hub · Domains and DNS in the ayedo documentation
Limit the first reconciliation to a subdomain
Start with a subdomain such as apps.example.org. Here, the controller should watch only HTTPRoutes and manage only names under that subdomain. These are the relevant ExternalDNS arguments for the first test run:
--source=gateway-httproute
--domain-filter=apps.example.org
--registry=txt
--txt-owner-id=prod-edge-eu1
--policy=upsert-only
--dry-run
With --dry-run, the logs show what ExternalDNS would change. For the first run with writes enabled, upsert-only can be useful. It permits creation and updates. If a route disappears, its existing record stays until cleaned up separately. If you later want automated deletion, test that case in a test zone before switching to sync. The domain filter limits the controller's scope. Where the provider supports it, scope the provider-side permissions to the intended zone as well. ExternalDNS flags
The TXT registry records which ExternalDNS instance owns a record. When several clusters share a zone, each instance needs its own stable owner ID. When migrating from Ingress to Gateway API, also decide which source will manage each existing hostname. That lets you test the handover for one name before moving additional routes. ExternalDNS registry
Verify the route once the name resolves
When troubleshooting, check the chain in the order it is configured:
- Check the route and gateway. Does the
HTTPRouteshowAccepted=TrueandResolvedRefs=Truefor the intended gateway? DoesGateway.status.addresseslist the expected address? Start in the cluster if any of these checks fail. HTTPRoute status - Check DNS reconciliation. Does the hostname appear in the planned changes? Does the record at the DNS provider match the gateway address? Query an authoritative nameserver to see the current zone data. A recursive resolver can return an older result until its cached answer expires.
- Test HTTPS with the actual hostname. Does the gateway present the right certificate, and does the expected backend service respond? Certificate provisioning and renewal are handled separately, for example by cert-manager. ExternalDNS at ayedo
When migrating from Ingress NGINX, you can test HTTPS against the new gateway address before changing the public DNS record. This verifies that the hostname, TLS, and backend routing work together. Envoy Gateway replaces Ingress NGINX
Managed ExternalDNS at ayedo
ayedo runs ExternalDNS on Kubernetes in Germany. Your team decides which routes produce DNS records and which zones are in scope. Start with a test subdomain and a gateway with a known address. Use them to verify provider access, record ownership, and what happens when a route is removed before bringing in production hostnames.
Want to manage DNS records from your Kubernetes Gateway API? Talk to us about your DNS provider, gateway configuration, and where to start.