英文地址:https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/

介绍


Kubernetes的DNS schedules a DNS Pod and Service on the cluster, and configures the kubelets to tell individual containers to use the DNS Service’s IP to resolve DNS names.

What things get DNS names?

Every Service defined in the cluster (including the DNS server itself) is assigned a DNS name. By default, a client Pod’s DNS search list will include the Pod’s own namespace and the cluster’s default domain. This is best illustrated by example:

Assume a Service namedfooin the Kubernetes namespacebar. A Pod running in namespacebarcan look up this service by simply doing a DNS query forfoo. A Pod running in namespacequuxcan look up this service by doing a DNS query forfoo.bar.

The following sections detail the supported record types and layout that is supported. Any other layout or names or queries that happen to work are considered implementation details and are subject to change without warning. For more up-to-date specification, seeKubernetes DNS-Based Service Discovery.

results matching ""

    No results matching ""