RE: DNS 访问 Service — Kubernetes(25)

You are viewing a single comment's thread from:

DNS 访问 Service — Kubernetes(25)

in kubernetes •  6 years ago 

老师,进入到容器内部后,wget命令没问题,但是在查看DNS的时候,只能看到K8S自己的DNS,而且只有IP,没有域名,我们自己创建的service的DNS查看不到,结果如下:


/ # nslookup httpd-svc
Server: 10.96.0.10
Address: 10.96.0.10:53

** server can't find httpd-svc: NXDOMAIN

*** Can't find httpd-svc: No answer


不知道是不是K8S版本问题,我的版本是1.11

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!