File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
content/zh-cn/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,8 @@ Some possible patterns for communicating with Pods in a DaemonSet are:
376
376
with the same pod selector, and then discover DaemonSets using the `endpoints`
377
377
resource or retrieve multiple A records from DNS.
378
378
- **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.
380
381
-->
381
382
与 DaemonSet 中的 Pod 进行通信的几种可能模式如下:
382
383
@@ -389,7 +390,8 @@ Some possible patterns for communicating with Pods in a DaemonSet are:
389
390
- **DNS**:创建具有相同 Pod 选择算符的[无头服务](/zh-cn/docs/concepts/services-networking/service/#headless-services),
390
391
通过使用 `endpoints` 资源或从 DNS 中检索到多个 A 记录来发现 DaemonSet。
391
392
392
- - **Service**:创建具有相同 Pod 选择算符的服务,并使用该服务随机访问到某个节点上的守护进程(没有办法访问到特定节点)。
393
+ - **Service**:创建具有相同 Pod 选择算符的服务,并使用该服务随机访问到某个节点上的守护进程。
394
+ 使用 [Service 内部流量策略](/zh-cn/docs/concepts/services-networking/service-traffic-policy/)限制同一节点上的 Pod。
393
395
394
396
<!--
395
397
# # Updating a DaemonSet
You can’t perform that action at this time.
0 commit comments