Skip to content

Commit 9a76356

Browse files
authored
Merge pull request #31397 from NoicFank/patch-4
Update assign-pod-node.md
2 parents 58fb4c2 + 7ec8bad commit 9a76356

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh/docs/concepts/scheduling-eviction/assign-pod-node.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,13 @@ In a three node cluster, a web application has in-memory cache such as redis. We
625625
##### 始终放置在相同节点上
626626

627627
在三节点集群中,一个 web 应用程序具有内存缓存,例如 redis。
628-
我们希望 web 服务器尽可能与缓存放置在同一位置
628+
我们希望 web 服务器与缓存尽可能放置在同一节点上
629629

630630
<!--
631631
Here is the yaml snippet of a simple redis deployment with three replicas and selector label `app=store`. The deployment has `PodAntiAffinity` configured to ensure the scheduler does not co-locate replicas on a single node.
632632
-->
633633
下面是一个简单 redis Deployment 的 YAML 代码段,它有三个副本和选择器标签 `app=store`。
634-
Deployment 配置了 `PodAntiAffinity`,用来确保调度器不会将副本调度到单个节点上
634+
Deployment 配置了 `PodAntiAffinity`,用来确保调度器不会将所有副本调度到同一节点上
635635

636636
```yaml
637637
apiVersion: apps/v1
@@ -667,8 +667,8 @@ spec:
667667
The below yaml snippet of the webserver deployment has `podAntiAffinity` and `podAffinity` configured. This informs the scheduler that all its replicas are to be co-located with pods that have selector label `app=store`. This will also ensure that each web-server replica does not co-locate on a single node.
668668
-->
669669
下面 webserver Deployment 的 YAML 代码段中配置了 `podAntiAffinity` 和 `podAffinity`。
670-
这将通知调度器将它的所有副本与具有 `app=store` 选择器标签的 Pod 放置在一起。
671-
这还确保每个 web 服务器副本不会调度到单个节点上
670+
这将通知调度器将 web-server 的所有副本与具有 `app=store` 选择器标签的 Pod 放置在一起。
671+
同时这还确保了不会有两个 web 服务器的副本被调度到同一节点上
672672

673673
```yaml
674674
apiVersion: apps/v1

0 commit comments

Comments
 (0)