An HTTPRoute without effect almost always reveals its error in its status. Three failure patterns cover most cases: hostname, backend, parentRef.
Symptom
curl -si --resolve kaputt.gw.localtest.me:80:$GW_IP \ http://kaputt.gw.localtest.me/ | head -1 HTTP/1.1 500 Internal Server Error
Three deliberately broken routes in the namespace shop.
Diagnosis
Read the conditions of all three routes.
for r in kaputt kaputt2 kaputt3; do echo "== $r"; conds.sh httproute $r shop; done == kaputt parent infra/web/http-api: Accepted=False (NoMatchingListenerHostname): There were no hostname intersections … ResolvedRefs=True (ResolvedRefs): Resolved all the Object references for the Route == kaputt2 parent infra/web/: Accepted=True (Accepted): Route is accepted ResolvedRefs=False (BackendNotFound): Failed to process route rule 0 backendRef 0: … == kaputt3
Causes
NoMatchingListenerHostnameHostnames do not intersect
The route names shop.gw.localtest.me but is attached via sectionName to the listener http-api with a different hostname.
BackendNotFoundWrong service or port
The route is accepted, but the service shop-v3 does not exist. Envoy answers with 500 for this rule.
no statusparentRef without namespace
Without namespace the route looks for the gateway web in its own namespace shop. There is none, no controller feels responsible – the status stays empty.
Fix
kubectl apply -f kaputt.yaml
Don't: Looking only at Accepted – Accepted=True with ResolvedRefs=False still returns 500.
Gateway API hands-on, Day 2: Gateway and HTTPRoute, paths, headers, a second listener and status debugging.
Go to day 2 →
FAQ
How do I see whether a route is attached to the listener at all?
In the gateway status: attachedRoutes per listener. If it stays 0, the route is not attached.
Why does my route have no status at all?
Because no controller processes it – usually parentRef points to a gateway that does not exist (wrong name or missing namespace).