Question 510
At Horizon observability, in a disposable simulated environment during a monitored release window: The platform has a configured load balancer controller and Deployment metrics-api in observability needs externally managed Service metrics-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
LoadBalancer Services request external routing from a supported infrastructure controller; a bare cluster does not guarantee an external address. This explains the stated condition. The corresponding action is: Run kubectl -n observability expose deployment metrics-api --name=metrics-svc --type=LoadBalancer --port=8080 --target-port=3000. The direct acceptance evidence is: Run kubectl -n observability get service metrics-svc and inspect external address assignment plus ready EndpointSlices.
Incorrect Answers
The offered statement is true for this other mechanism: A NodePort Service allocates a cluster-configured host port on each node while retaining its cluster IP routing. It does not explain the facts described here, which follow from: LoadBalancer Services request external routing from a supported infrastructure controller; a bare cluster does not guarantee an external address.
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: LoadBalancer Services request external routing from a supported infrastructure controller; a bare cluster does not guarantee an external address. The two mechanisms should not be conflated.
Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. That explanation applies to a different technical failure. Here the controlling principle is: LoadBalancer Services request external routing from a supported infrastructure controller; a bare cluster does not guarantee an external address.