Create affinity.md

This commit is contained in:
Meha Bhalodiya 2021-06-18 16:26:02 +05:30 committed by GitHub
parent 5a5c96b2cc
commit 49e1c4b579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
---
title: affinity
id: affinity
date: 2019-01-11
full_link: /docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/
short_description: >
Node affinity is a set of rules used by the scheduler to determine where a pod can be placed.
aka:
tags:
- core object
- fundamental
---
Node affinity is a set of rules used by the scheduler to determine where a pod can be placed.
<!--more-->
The rules are defined using the familiar concepts of custom labels on {{< glossary_tooltip term_id="node" text="nodes">}}
and {{< glossary_tooltip term_id="selector" text="selectors">}} specified in {{< glossary_tooltip term_id="pod" text="pods" >}},
and they can be either required or preferred, depending on how strictly you want the scheduler to enforce them.