Question 1030
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Clients can resolve Service dispatch-svc in fulfillment but connections fail; Service targetPort does not match the container's actual listener 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
The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment describe service dispatch-svc and compare Service targetPort with Pod listening port before patching. The direct acceptance evidence is: Run an in-cluster connection test to Service port 9090 after aligning targetPort with 9000.
Incorrect Answers
The offered statement is true for this other mechanism: A hard nodeSelector must match a Node's actual labels; tolerations or Service routing cannot bypass the unmatched selector. It does not explain the facts described here, which follow from: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there.
This principle describes a separate cause: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The reported condition is governed by: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: A running container is not necessarily Ready; failing readiness can remove a Pod from ready Service endpoints. It does not explain the facts described here, which follow from: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there.