The Kubernetes (K8s) virtual network utilizes the Domain Name System (DNS) to enable Pods to discover other Pods and Services using domain names instead of IP addresses.

This DNS service operates as a Service within the cluster and is typically located in the kube-system namespace. In Kubeadm clusters, CoreDNS is the default DNS provider.

Pod Domain Names

In our Kubeadm cluster, all Pods are automatically assigned domain names following this format:

pod-ip-address.namespace-name.pod.cluster.local

For example, if a Pod in the default namespace has the IP address 192.168.10.100, its domain name would be:

192-168-10-100.default.pod.cluster.local