website/content/vi/docs/reference/glossary/affinity.md

1.1 KiB

title id date full_link short_description aka tags
Affinity affinity 2019-01-11 /docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity Các quy tắc được scheduler sử dụng để xác định vị trí phân phối pod
fundamental

Trong Kubernetes, affinity là một tập hợp các quy tắc cung cấp gợi ý cho scheduler về vị trí phân phối pod.

Có hai loại affinity:

Các quy tắc được định nghĩa bằng cách sử dụng {{< glossary_tooltip term_id="label" text="labels">}} của Kubernetes, và {{< glossary_tooltip term_id="selector" text="selectors">}} được chỉ định trong {{< glossary_tooltip term_id="pod" text="pods" >}}, và chúng có thể là bắt buộc hoặc khuyến nghị, tùy thuộc vào mức độ nghiêm ngặt bạn muốn scheduler thực thi chúng.