How to Control Where a Pod Runs in Kubernetes
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.
- With
nodeSelectorfield matching the labels set on a node - With
nodeNamefield - Using
affinity