Question 680
At Horizon observability, in a disposable simulated environment during a monitored release window: The lab cluster has an Ingress controller named nginx; an Ingress metrics-ingress in observability must route metrics.example.test path / to Service metrics-svc port 8080. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Review ingress class ownership and avoid exposing test applications outside intended environments. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability create ingress metrics-ingress --class=nginx --rule='metrics.example.test/=metrics-svc:8080' after confirming the Service exists. The relevant mechanism is: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller.
Incorrect Answers
The suggested review tracks a different technical risk: EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist. Here the sustained control must address: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. Choose “Review ingress class ownership and avoid exposing test applications outside intended environments”.
That safeguard is relevant to: 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 current failure instead follows from: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. Its prevention measure is “Review ingress class ownership and avoid exposing test applications outside intended environments”.
This routine guards against another mechanism: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The recurring exposure in the current case is: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. The matching preventive check is “Review ingress class ownership and avoid exposing test applications outside intended environments”.