Skip to content

Commit

Permalink
Updated dns-pod-service.md (#9552)
Browse files Browse the repository at this point in the history
* Updated dns-pod-service.md

Added a note on A records creation

* Updated dns-pod-service.md

Added Hugo  {{ note }} shortcode

* Update dns-pod-service.md

Changed wording

* tighten up the wording
  • Loading branch information
dsalamancaMS authored and k8s-ci-robot committed Jul 20, 2018
1 parent 487c243 commit a9b1cdb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ A record at that name, pointing to the Pod's IP. Both pods "`busybox1`" and
The Endpoints object can specify the `hostname` for any endpoint addresses,
along with its IP.

{{< note >}}
**Note:** Because A records are not created for Pod names, `hostname` is required for the Pod's A record to be created. A Pod with no `hostname` but with `subdomain` only will only create the A record for the headless service (`default-subdomain.my-namespace.svc.cluster.local`), pointing to the Pod's IP address.
{{< /note >}}

### Pod's DNS Policy

DNS policies can be set on a per-pod basis. Currently Kubernetes supports the
Expand Down

0 comments on commit a9b1cdb

Please sign in to comment.