---
title: "Discussion on \"Affinity and Anti-affinity\" | Hashnode"
description: "Discussion on \"Affinity and Anti-affinity\". Affinity and Anti-affinity have the same functionality as nodeSeclector. \n\nAffinity and Anti-afffinity allow for more complex scheduling than nodeSelector and work with pods as well. \n\nYou can create rules that are not hard requirements but a preferr..."
url: "https://hashnode.com/posts/affinity-and-anti-affinity/6148a6de17da986cea647fc6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Affinity and Anti-affinity](https://vyshnavlal.hashnode.dev/affinity-and-anti-affinity?utm_source=hashnode&utm_medium=feed)

Affinity and Anti-affinity have the same functionality as nodeSeclector. Affinity and Anti-afffinity allow for more complex scheduling than nodeSelector and work with pods as well. You can create rules that are not hard requirements but a preferr...

Sep 20, 2021 · 2 min read · vyshnavlal.hashnode.dev  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)

## Written by

[Vyshnavlal](https://hashnode.com/@vyshnavlal)

@vyshnavlal

  
[View profile](https://hashnode.com/@vyshnavlal)

continuous learning ; continuous improvement

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
