Skip to content

Commit

Permalink
added usecase section
Browse files Browse the repository at this point in the history
  • Loading branch information
rasika-chivate committed Jan 17, 2025
1 parent f74f781 commit cb0a723
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/use/affinity.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ The following table provides details about the different elements involved in se
|**Operator**|The operator field specifies how a label's values match a resource, such as a Pod or node. It establishes the logical condition to determine if a resource satisfies the affinity or anti-affinity rule.</br></br>The following are all logical operators you can use in the operator field:</br><ul><li>**In**: Matches label values in a list</li><li>**NotIn**: Matches label values not in a list.</li><li>**Exists**: Matches when a label key exists, regardless of its value.</li><li>**DoesNotExist**: Matches when a label key does not exist.</li></ul>|When using the **In** and **NotIn** operators, you have to provide the values for the key as well.|
|**Values**|The values are the specific label values that must match the key for the affinity rule to apply.|Here are some examples for **values**:</br><ul><li>s2</li><li>database</li><li>production</li><li>custom values</li></ul>|

## Use cases for affinity

Here are some detailed use cases for affinity that showcase its various applications and benefits.








Expand Down

0 comments on commit cb0a723

Please sign in to comment.