File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
content/en/docs/reference/glossary Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : affinity
2
+ title : Affinity
3
3
id : affinity
4
4
date : 2019-01-11
5
- full_link : /docs/tasks/configure-pod-container /assign-pods-nodes-using-node -affinity/
5
+ full_link : /docs/concepts/scheduling-eviction /assign-pod-node/#affinity-and-anti -affinity
6
6
short_description : >
7
- Node affinity is a set of rules used by the scheduler to determine where a pod can be placed.
7
+ Rules used by the scheduler to determine where to place pods
8
8
aka :
9
9
tags :
10
- - core object
11
10
- fundamental
12
11
---
13
- Node affinity is a set of rules used by the scheduler to determine where a pod can be placed.
12
+
13
+ In Kubernetes, _ affinity_ is a set of rules that give hints to the scheduler about where to place pods.
14
14
15
15
<!-- more-->
16
+ There are two kinds of affinity:
17
+ * [ node affinity] ( /docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity )
18
+ * [ pod-to-pod affinity] ( /docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity )
16
19
17
- The rules are defined using the familiar concepts of custom labels on {{< glossary_tooltip term_id="node " text="nodes ">}}
20
+ The rules are defined using the Kubernetes {{< glossary_tooltip term_id="label " text="labels ">}},
18
21
and {{< glossary_tooltip term_id="selector" text="selectors">}} specified in {{< glossary_tooltip term_id="pod" text="pods" >}},
19
22
and they can be either required or preferred, depending on how strictly you want the scheduler to enforce them.
You can’t perform that action at this time.
0 commit comments