Kubernetes服务发现DNS查找

时间:2019-03-23 00:25:04

标签: kubernetes dns minikube service-discovery

当我在kubernetes服务上执行nslookup时,它可以解决,但同时在其他名称查找上也会引发一些错误,如何禁用此功能?我该如何告诉服务发现不要查找那些其他名称。

/ # nslookup mysql
Server:     10.96.0.10
Address:    10.96.0.10:53

Name:   mysql.default.svc.cluster.local
Address: 10.101.121.224

*** Can't find mysql.svc.cluster.local: No answer
*** Can't find mysql.cluster.local: No answer
*** Can't find mysql.default.svc.cluster.local: No answer
*** Can't find mysql.svc.cluster.local: No answer
*** Can't find mysql.cluster.local: No answer

我进行了特定的搜索,但失败了:

/ # nslookup mysql.default.svc.cluster.local
Server:     10.96.0.10
Address:    10.96.0.10:53


*** Can't find mysql.default.svc.cluster.local: No answer

/ # 

0 个答案:

没有答案