A permits desk app must talk to a legacy database that runs outside the cluster at a fixed IP. Which Service approach maps a stable in-cluster DNS name to that external backend?
Select an answer to reveal the explanation.
Short Explanation
When the backend is not a Pod, you hand-wire the address book. A Service with no selector plus a manual Endpoints (or EndpointSlice) entry points cluster DNS at that external DB IP. Selectors alone cannot invent Pods that do not exist.
Full Explanation
Services without selectors do not auto-create Endpoints from Pod labels. Operators define an Endpoints or EndpointSlice object whose subsets list the external IP and port, matching the Service name and ports. That gives pods a stable ClusterIP and DNS name for an off-cluster database. NodePort alone does not invent external backends, and Ingress is HTTP routing—not a replacement for Service-plus-Endpoints to a TCP database.