Question 710
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A prepared HTTPRoute invoice-route in ledger must attach to approved Gateway internal-gw and route requests for invoice.example.test to Service invoice-svc. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. This explains the stated condition. The corresponding action is: Run kubectl -n ledger apply -f ./gateway/invoice-api-route.yaml after confirming parentRefs, hostnames and backendRefs. The direct acceptance evidence is: Run kubectl -n ledger get httproute invoice-route -o yaml and inspect parent acceptance and resolved-reference conditions.
Incorrect Answers
This principle describes a separate cause: A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress. The reported condition is governed by: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. The two mechanisms should not be conflated.
EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist. That explanation applies to a different technical failure. Here the controlling principle is: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners.
This principle describes a separate cause: Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. The reported condition is governed by: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. The two mechanisms should not be conflated.