Skip to content
Opsfolk

Services and networking, topic 21 of 61

DNS in the cluster

CoreDNS gives each Service a name of the form name.namespace.svc.cluster.local, so a Pod in the same namespace can reach it by its short name alone. A Pod's /etc/resolv.conf is set up to search its own namespace first.

When something cannot reach a Service, check the name resolves before anything else: nslookup from a debug Pod settles it quickly. Names with few dots go through every search domain first, which is why some clients look up names slowly.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress