How Service Discovery Actually Works in Kubernetes: CoreDNS, Pod Networking, and Registries

Inside a cluster, 'where is service B' is answered by a layered system: a Service object, a DNS name served by CoreDNS, a control loop tracking healthy pods, and kube-proxy turning a virtual IP into a real one. Here is how each piece fits, with examples, and how it extends to external service registries.