Cluster DNS Structure

Hostname | Namespace | Type | Root | IP Address |
---|
web-service | apps | svc | cluster.local | 10.107.37.188 |
10-244-2-5 | apps | pod | cluster.local | 10.224.2.5 |
10-244-1-5 | default | pod | cluster.local | 10.224.1.5 |
Domain | IP Address |
---|
web-service.apps.svc.cluster.local | 10.107.37.188 |
10-244-2-5.apps.pod.cluster.local | 10.224.2.5 |
10-224-1-5.default.pod.cluster.local | 10.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