Question 360
A Kubernetes administrator recommends: Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef. Which situation most directly calls for that operation?
Explanation
Correct Answer
This is the original issue addressed by HTTPRoute parentRef namespace: The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary.
Incorrect Answers
That separate problem requires another operation: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.
That separate problem requires another operation: Check CoreDNS Deployment health, DNS Service selectors and ready EndpointSlices before replacing Pod network settings. DNS service resolution resumes once the cluster DNS Service has healthy backing Pods.
That separate problem requires another operation: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.