@@ -80,7 +80,7 @@ are used to expand queries. To learn more about DNS queries, see
80
80
[the `resolv.conf` manual page.](https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html)
81
81
-->
82
82
DNS 查询可以使用 Pod 中的 ` /etc/resolv.conf ` 展开。kubelet 会为每个 Pod
83
- 生成此文件。例如,对 ` data ` 的查询可能被展开为 ` data.test.cluster.local ` 。
83
+ 生成此文件。例如,对 ` data ` 的查询可能被展开为 ` data.test.svc. cluster.local ` 。
84
84
` search ` 选项的取值会被用来展开查询。要进一步了解 DNS 查询,可参阅
85
85
[ ` resolv.conf ` 手册页面] ( https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html ) 。
86
86
@@ -384,13 +384,13 @@ following pod-specific DNS policies. These policies are specified in the
384
384
385
385
- " `Default` " : The Pod inherits the name resolution configuration from the node
386
386
that the pods run on.
387
- See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node )
387
+ See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers)
388
388
for more details.
389
389
- " `ClusterFirst` " : Any DNS query that does not match the configured cluster
390
390
domain suffix, such as "`www.kubernetes.io`", is forwarded to the upstream
391
391
nameserver inherited from the node. Cluster administrators may have extra
392
392
stub-domain and upstream DNS servers configured.
393
- See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods )
393
+ See [related discussion](/docs/tasks/administer-cluster/dns-custom-nameservers)
394
394
for details on how DNS queries are handled in those cases.
395
395
- " `ClusterFirstWithHostNet` " : For Pods running with hostNetwork, you should
396
396
explicitly set its DNS policy "`ClusterFirstWithHostNet`".
@@ -405,11 +405,11 @@ DNS 策略可以逐个 Pod 来设定。目前 Kubernetes 支持以下特定 Pod
405
405
这些策略可以在 Pod 规约中的 `dnsPolicy` 字段设置:
406
406
407
407
- " `Default` " : Pod 从运行所在的节点继承名称解析配置。参考
408
- [相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers/#inheriting-dns-from-the-node )
408
+ [相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers)
409
409
获取更多信息。
410
410
- " `ClusterFirst` " : 与配置的集群域后缀不匹配的任何 DNS 查询(例如 "www.kubernetes.io")
411
411
都将转发到从节点继承的上游名称服务器。集群管理员可能配置了额外的存根域和上游 DNS 服务器。
412
- 参阅[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers/#impacts-on-pods )
412
+ 参阅[相关讨论](/zh/docs/tasks/administer-cluster/dns-custom-nameservers)
413
413
了解在这些场景中如何处理 DNS 查询的信息。
414
414
- " `ClusterFirstWithHostNet`" :对于以 hostNetwork 方式运行的 Pod,应显式设置其 DNS 策略
415
415
" `ClusterFirstWithHostNet`" 。
0 commit comments