{hostname(metadata.name)}.({subdomain}).{namespace}.svc.cluster.local
Kubernetes DNSs
DNS for Services and Pods
Kubernetes creates DNS records for services and pods. You can contact services with consistent DNS names instead of IP addresses. Introduction Kubernetes DNS schedules a DNS Pod and Service on the cluster, and configures the kubelets to tell individual containers to use the DNS Service's IP to resolve DNS names.
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/

ssup2.github.io
Kubernetes에서 동작하는 CoreDNS를 분석한다. CoreDNS는 일반적으로 Kubernetes Cluster 내부에서 이용되는 DNS Server이다. 주로 Kubernetes Cluster 내부에서 Domain을 통해서 Service나 Pod의 IP를 찾는 용도로 많이 이용된다. [그림 1]은 Kubernetes Cluster에서 동작하는 CoreDNS의 Architecture를 나타내고 있다. CoreDNS는 일반적으로 Worker Node에서 Deployment로 배포되어 다수의 Pod으로 구동된다. 그리고 다수의 CoreDNS Pod들은 CoreDNS Service를 통해서 VIP (ClusterIP)로 묶이게 된다.
https://ssup2.github.io/theory_analysis/Kubernetes_CoreDNS/

Seonglae Cho