8000 docs: add an example of a Service-scoped Pod DNS record · kubernetes/website@46457ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 46457ea

Browse files
committed
docs: add an example of a Service-scoped Pod DNS record
This example will help the reader understand. It's also more consistent to provide an example like the preceding Pod-scoped DNS record paragraphs. Update the other example to be consistent with the Pod DNS name's format. Signed-off-by: David Xia <david@davidxia.com>
1 parent 7fbfacf commit 46457ea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Kube-DNS versions, prior to the implementation of the
105105
had the following DNS resolution:
106106

107107
```
108-
pod-ipv4-address.my-namespace.pod.cluster-domain.example
108+
<pod-IPv4-address>.<namespace>.pod.<cluster-domain>
109109
```
110110

111111
For example, if a Pod in the `default` namespace has the IP address 172.17.0.3,
@@ -121,6 +121,14 @@ Some cluster DNS mechanisms, like [CoreDNS](https://coredns.io/), also provide `
121121
<pod-ipv4-address>.<service-name>.<my-namespace>.svc.<cluster-domain.example>
122122
```
123123

124+
For example, if a Pod in the `cafe` namespace has the IP address 172.17.0.3,
125+
is an endpoint of a Service named `barista`, and the domain name for your cluster is
126+
`cluster.local`, then the Pod would have this service-scoped DNS `A` record.
127+
128+
```
129+
172-17-0-3.barista.cafe.svc.cluster.local
130+
```
131+
124132
### Pod's hostname and subdomain fields
125133

126134
Currently when a Pod is created, its hostname (as observed from within the Pod)

0 commit comments

Comments
 (0)
0