Skip to content

Sajal Choudhary

Garden Stream Nordletter Shelf About
Colophon Now Feeds
Evergreen TIL Story Poem Haiku
Blog Micro Photo
Book Film TV Game
til k8s
Sajal Choudhary https://sajalchoudhary.net

How to Control Where a Pod Runs in Kubernetes

K8S
Planted .

Normally, we don’t need to do this. But, if we need to there are a few ways to do this, mostly using selectors.

  1. With nodeSelector field matching the labels set on a node
  2. With nodeName field
  3. Using affinity
Updated October 23, 2026 at 16:34 . Thoughts? Email me.
Posted to:
Mastodon Bluesky Threads
About Colophon Now Books Evergreen TIL Story Poem Haiku Photo

© 2012–2026 Sajal Choudhary

Streak New posts for 139 consecutive weeks