Networking & service meshLesson 3 of 11
How a Gateway API HTTPRoute Reaches a Pod
Follow one request through the Gateway API: GatewayClass → Gateway → HTTPRoute → Service → Pod. Watch how the route attaches to a listener, and read what status.parents says when it does not.
Requestshop.example.com/
Accepted—
ResolvedRefs—
Backends—
RequestWatchAppears in a later step
What you will learn
- Three resources, three owners: GatewayClass, Gateway, HTTPRoute
- Listeners and allowedRoutes decide which routes may attach
- parentRefs, hostnames, rules and backendRefs in an HTTPRoute
- Why a route fails to attach and how Accepted=False says so
- Cross-namespace backends need a ReferenceGrant
Reading status.parents
Each entry in an HTTPRoute's status.parents matches one parentRef and holds the conditions written by that Gateway's controller.
| Condition | Reason | Meaning | Fix |
|---|---|---|---|
| Accepted=True | Accepted | The Gateway took the route | — |
| Accepted=False | NotAllowedByListeners | No listener's allowedRoutes permits this route (namespace or kind) | Change the listener's allowedRoutes, or label the route's namespace to match its selector |
| Accepted=False | NoMatchingListenerHostname | No listener hostname matches the route's hostnames | Align the route hostnames with the listener hostname (for example *.example.com) |
| Accepted=False | NoMatchingParent | sectionName or port in the parentRef matches no listener | Fix the parentRef to name an existing listener |
| Accepted=Unknown | Pending | The controller has not reconciled the route yet | Check that the GatewayClass is Accepted and the controller is running |
| ResolvedRefs=True | ResolvedRefs | All backendRefs could be resolved | — |
| ResolvedRefs=False | RefNotPermitted | A backendRef points to another namespace with no ReferenceGrant | Create a ReferenceGrant in the target namespace |
| ResolvedRefs=False | BackendNotFound | The referenced Service does not exist | Fix the name, namespace or port, or create the Service |
| ResolvedRefs=False | InvalidKind | The backendRef group or kind is unknown or unsupported | Point to a Service, or a kind the implementation supports |
If status.parents is empty, no controller has handled the route at all. Check the parentRef name and namespace, and the GatewayClass.
Try it yourself
kubectl get gatewayclass # CONTROLLER and ACCEPTED
kubectl get gateway -A # CLASS, ADDRESS, PROGRAMMED
kubectl describe gateway infra-gw -n infra # Listeners, allowedRoutes, attachedRoutes
kubectl get httproute -A # HOSTNAMES per route
kubectl get httproute store -n shop \
-o jsonpath='{range .status.parents[*].conditions[*]}{.type}={.status} {.reason}{"\n"}{end}' # Accepted / ResolvedRefs
kubectl get referencegrant -A # Who allows cross-namespace refs
Check yourself
Further reading: Gateway API docs · HTTPRoute · ReferenceGrant · Gateway API on kubernetes.io · Ingress Rules and TLS · Three Entry Points Compared