Skip to content

Commit abd7c05

Browse files
authored
Merge pull request #51907 from my-git9/npa-8786
[zh-cn]sync daemonset.md
2 parents 59f0b96 + 7a6bbcc commit abd7c05

File tree

1 file changed

+4
-2
lines changed
  • content/zh-cn/docs/concepts/workloads/controllers

1 file changed

+4
-2
lines changed

content/zh-cn/docs/concepts/workloads/controllers/daemonset.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ Some possible patterns for communicating with Pods in a DaemonSet are:
376376
with the same pod selector, and then discover DaemonSets using the `endpoints`
377377
resource or retrieve multiple A records from DNS.
378378
- **Service**: Create a service with the same Pod selector, and use the service to reach a
379-
daemon on a random node. (No way to reach specific node.)
379+
daemon on a random node. Use [Service Internal Traffic Policy](/docs/concepts/services-networking/service-traffic-policy/)
380+
to limit to pods on the same node.
380381
-->
381382
与 DaemonSet 中的 Pod 进行通信的几种可能模式如下:
382383

@@ -389,7 +390,8 @@ Some possible patterns for communicating with Pods in a DaemonSet are:
389390
- **DNS**:创建具有相同 Pod 选择算符的[无头服务](/zh-cn/docs/concepts/services-networking/service/#headless-services),
390391
通过使用 `endpoints` 资源或从 DNS 中检索到多个 A 记录来发现 DaemonSet。
391392

392-
- **Service**:创建具有相同 Pod 选择算符的服务,并使用该服务随机访问到某个节点上的守护进程(没有办法访问到特定节点)。
393+
- **Service**:创建具有相同 Pod 选择算符的服务,并使用该服务随机访问到某个节点上的守护进程。
394+
使用 [Service 内部流量策略](/zh-cn/docs/concepts/services-networking/service-traffic-policy/)限制同一节点上的 Pod。
393395

394396
<!--
395397
## Updating a DaemonSet

0 commit comments

Comments
 (0)