Fix dns doc about inheriting DNS from nodes (#9214)

Kubelet doesn't prepend the cluster DNS server to the nodes's DNS
settings, neither for Pods with "ClusterFirst" dnsPolicy nor Pods with
"default" dnsPolicy.

Only pods with "default" dnsPolicy inherit DNS from nodes, without the
cluster DNS server prepended.
This commit is contained in:
Quan Tian 2018-09-20 11:30:05 +08:00 committed by k8s-ci-robot
parent dd703440b6
commit 02c38e5180
1 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ lookups (PTR records).
## Inheriting DNS from the node
When running a Pod, kubelet prepends the cluster DNS server and searches
paths to the node's DNS settings. If the node is able to resolve DNS names
specific to the larger environment, Pods should also be able to resolve.
If a Pod's `dnsPolicy` is set to "`default`", it inherits the name resolution
configuration from the node that the Pod runs on. The Pod's DNS resolution
should behave the same as the node.
But see [Known issues](/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues).
If you don't want this, or if you want a different DNS config for pods, you can