Contents

Kubernetes Cluster DNS

Cluster DNS Structure

/kubernetes-cluster-dns/cluster-dns-structure.png
HostnameNamespaceTypeRootIP Address
web-serviceappssvccluster.local10.107.37.188
10-244-2-5appspodcluster.local10.224.2.5
10-244-1-5defaultpodcluster.local10.224.1.5
DomainIP Address
web-service.apps.svc.cluster.local10.107.37.188
10-244-2-5.apps.pod.cluster.local10.224.2.5
10-224-1-5.default.pod.cluster.local10.224.1.5
SVC apps web-service 10.107.37.188
1
2
3
curl http://web-service

Welcome to NGINX!
1
2
3
curl http://web-service.apps.svc.cluster.local

Welcome to NGINX!
POD apps web 10.224.2.5
1
2
3
curl http://10-244-2-5

Welcome to NGINX!
1
2
3
curl http://10-244-2-5.apps.pod.cluster.local

Welcome to NGINX!
POD default test 10.224.1.5
1
2
3
curl http://10-244-1-5

Welcome to NGINX!
1
2
3
curl http://10-224-1-5.default

Welcome to NGINX!
1
2
3
curl http://10-224-1-5.default.pod

Welcome to NGINX!
1
2
3
curl http://10-224-1-5.default.pod.cluster.local

Welcome to NGINX!
1
2
3
curl http://web-service.apps.svc.cluster.local

Welcome to NGINX!
1
2
3
curl http://10-244-2-5.apps.pod.cluster.local

Welcome to NGINX!

Cluster DNS Hierarchy