Skip to content

Commit 670ae1a

Browse files
authored
Merge pull request #31783 from mengjiao-liu/sync-dns-pod-service-zh
[zh] Correcting DNS record for pods exposed by a Service
2 parents 09fac31 + 5abe709 commit 670ae1a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,9 @@ and the domain name for your cluster is `cluster.local`, then the Pod has a DNS
188188
189189
`172-17-0-3.default.pod.cluster.local`.
190190
191-
Any pods created by a Deployment or DaemonSet exposed by a Service have the
192-
following DNS resolution available:
191+
Any pods exposed by a Service have the following DNS resolution available:
193192
194-
`pod-ip-address.deployment-name.my-namespace.svc.cluster-domain.example`.
193+
`pod-ip-address.service-name.my-namespace.svc.cluster-domain.example`.
195194
-->
196195
### A/AAAA 记录
197196

@@ -204,10 +203,9 @@ following DNS resolution available:
204203

205204
`172-17-0-3.default.pod.cluster.local`.
206205

207-
Deployment 或通过 Service 暴露出来的 DaemonSet 所创建的 Pod 会有如下 DNS
208-
解析名称可用:
206+
通过 Service 暴露出来的所有 Pod 都会有如下 DNS 解析名称可用:
209207

210-
`pod-ip-address.deployment-name.my-namespace.svc.cluster-domain.example`.
208+
`pod-ip-address.service-name.my-namespace.svc.cluster-domain.example`.
211209

212210
<!--
213211
### Pod's hostname and subdomain fields

0 commit comments

Comments
 (0)