Pod network and DNS names
Applications that you deploy in Kubernetes communicate through the Pod network, and each Pod automatically gets an IP address and a DNS name.
Applications that you deploy in Kubernetes communicate with each other through the Kubernetes Pod network, also called the cluster network. Kubernetes manages this internal network to simplify communication inside the cluster.
Kubernetes deploys applications as Pods. Each Pod automatically gets an IP address and a DNS name, without any additional configuration. The IP address and DNS name are valid for all communication inside the cluster. To display the IP addresses of your Pods, run the kubectl get po -o wide command. The following example shows part of the output:
NAME READY STATUS RESTARTS AGE IP
nginx-7bb7cd8db5-abcde 1/1 Running 0 3d 10.244.1.12
api-5fd5b67f78-xyz12 1/1 Running 2 12h 10.244.2.34
db-0 1/1 Running 0 5d 10.244.1.5