From a Pod in namespace web, what DNS name reliably reaches Service my-svc in namespace my-ns?
Select an answer to reveal the explanation.
Short Explanation
Cross-namespace DNS needs the full mailing address: service, then namespace, then svc.cluster.local. So my-svc.my-ns.svc.cluster.local from the web namespace. Skip the namespace segment and you may only find a same-namespace namesake—or nothing.
Full Explanation
In-cluster DNS for Services follows <service>.<namespace>.svc.cluster.local. From another namespace you must include the Service’s namespace in the name. Forms that omit the namespace, reverse the labels, or drop svc do not correctly identify my-svc in my-ns.