File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
content/zh/docs/reference/glossary Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : 亲和性(Affinity)
3
+ id : affinity
4
+ date : 2019-01-11
5
+ full_link : zh/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
6
+ short_description : >
7
+ 调度程序用于确定在何处放置 Pods(亲和性)的规则
8
+ aka :
9
+ tags :
10
+ - fundamental
11
+ ---
12
+ <!--
13
+ ---
14
+ title: Affinity
15
+ id: affinity
16
+ date: 2019-01-11
17
+ full_link: /docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
18
+ short_description: >
19
+ Rules used by the scheduler to determine where to place pods
20
+ aka:
21
+ tags:
22
+ - fundamental
23
+ ---
24
+ -->
25
+
26
+ <!--
27
+ In Kubernetes, _affinity_ is a set of rules that give hints to the scheduler about where to place pods.
28
+ -->
29
+ 在 Kubernetes 中,_ 亲和性(affinity)_ 是一组规则,它们为调度程序提供在何处放置 Pods 提示信息。
30
+ <!-- more-->
31
+ <!--
32
+ There are two kinds of affinity:
33
+ -->
34
+ 亲和性有两种:
35
+ <!--
36
+ * [node affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)
37
+ * [pod-to-pod affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
38
+ -->
39
+ * [ 节点亲和性] ( /zh/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity )
40
+ * [ Pod 间亲和性] ( /zh/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity )
41
+
42
+ <!--
43
+ The rules are defined using the Kubernetes {{< glossary_tooltip term_id="label" text="labels">}},
44
+ and {{< glossary_tooltip term_id="selector" text="selectors">}} specified in {{< glossary_tooltip term_id="pod" text="pods" >}},
45
+ and they can be either required or preferred, depending on how strictly you want the scheduler to enforce them.
46
+ -->
47
+ 这些规则是使用 Kubernetes {{< glossary_tooltip term_id="label" text="标签">}}(label)
48
+ 和 {{< glossary_tooltip term_id="pod" text="pods" >}} 中指定的
49
+ {{< glossary_tooltip term_id="selector" text="选择算符">}}定义的,
50
+ 这些规则可以是必需的或首选的,这取决于你希望调度程序执行它们的严格程度。
You can’t perform that action at this time.
0 commit comments