Skip to content

Commit a9b1cdb

Browse files
dsalamancaMSk8s-ci-robot
authored andcommitted
Updated dns-pod-service.md (#9552)
* 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
1 parent 487c243 commit a9b1cdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/en/docs/concepts/services-networking/dns-pod-service.md

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ A record at that name, pointing to the Pod's IP. Both pods "`busybox1`" and
148148
The Endpoints object can specify the `hostname` for any endpoint addresses,
149149
along with its IP.
150150

151+
{{< note >}}
152+
**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.
153+
{{< /note >}}
154+
151155
### Pod's DNS Policy
152156

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

0 commit comments

Comments
 (0)