---
title: "Discussion on \"Node Affinity\" | Hashnode"
description: "Discussion on \"Node Affinity\". node affinity ——————→ restrict pod to be deployed on specific node.\nPlease note\nplease node ———→ Node selector and Node affinity restrict pod to be deployed on nodes that have certain labels\nHow to use node affinity ?\n1) label node\n$ kubectl label no..."
url: "https://hashnode.com/posts/node-affinity/67cd2e2db6c200e5da80b2ba"
---

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

Discussion

# [Node Affinity](https://cka-learning.hashnode.dev/node-affinity?utm_source=hashnode&utm_medium=feed)

node affinity ——————→ restrict pod to be deployed on specific node. Please note please node ———→ Node selector and Node affinity restrict pod to be deployed on nodes that have certain labels How to use node affinity ? 1) label node $ kubectl label no...

Mar 9, 2025 · 2 min read · cka-learning.hashnode.dev  
Read the article

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

## Written by

[Esraa Elhasanen Soror](https://hashnode.com/@esraaelhasanen)

@esraaelhasanen

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

Devops

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
