Service在集群内部的DNS全名:<service名字>.<namespace名字>.svc.<zone名字>
Zone名字一般是cluster.local,可以通过kubectl -n kube-system get configmaps coredns -o yaml查看coredns配置来得到:
|
|
相关资料
- [Pod 与 Service 的 DNS][doc-1]
- [Customizing DNS Service][doc-2]
- Kubernetes DNS-Based Service Discovery
评论