Question 490
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in namespace fulfillment needs an internal ClusterIP Service dispatch-svc exposing port 9090 to container port 9000. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment expose deployment dispatch-api --name=dispatch-svc --type=ClusterIP --port=9090 --target-port=9000. The direct acceptance evidence is: Run kubectl -n fulfillment get service dispatch-svc and inspect its EndpointSlices and port mapping.
Incorrect Answers
The offered statement is true for this other mechanism: Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. It does not explain the facts described here, which follow from: A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints.
This principle describes a separate cause: A NodePort Service allocates a cluster-configured host port on each node while retaining its cluster IP routing. The reported condition is governed by: A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. The two mechanisms should not be conflated.
DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. That explanation applies to a different technical failure. Here the controlling principle is: A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints.