1.9 KiB
1.9 KiB
title | id | date | full_link | short_description | aka | tags | |
---|---|---|---|---|---|---|---|
亲和性(Affinity) | affinity | 2019-01-11 | zh/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity | 调度程序用于确定在何处放置 Pods(亲和性)的规则 |
|
在 Kubernetes 中,_亲和性(affinity)_是一组规则,它们为调度程序提供在何处放置 Pods 提示信息。
亲和性有两种:
这些规则是使用 Kubernetes {{< glossary_tooltip term_id="label" text="标签">}}(label) 和 {{< glossary_tooltip term_id="pod" text="pods" >}} 中指定的 {{< glossary_tooltip term_id="selector" text="选择算符">}}定义的, 这些规则可以是必需的或首选的,这取决于你希望调度程序执行它们的严格程度。