Question 550
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Service dispatch-svc in namespace fulfillment may have no ready backends; identify its EndpointSlices before changing network policy. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment get endpointslices -l kubernetes.io/service-name=dispatch-svc -o wide. The direct acceptance evidence is: Compare listed endpoints against the matching ready Pods and expected selector for dispatch-svc.
Incorrect Answers
The offered statement is true for this other mechanism: Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. It does not explain the facts described here, which follow from: EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist.
This principle describes a separate cause: The Service port is what clients connect to, while targetPort must reach the actual backend listener. The reported condition is governed by: EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist. The two mechanisms should not be conflated.
The offered statement is true for this other mechanism: CoreDNS behavior is configured separately from Service definitions, and incorrect DNS plugins or cluster domain can break discovery cluster-wide. It does not explain the facts described here, which follow from: EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist.