Running one pod per node with deterministic hostnames Running one pod per node with deterministic hostnames kubernetes kubernetes

Running one pod per node with deterministic hostnames


The one way is to use nodeSelector, but I totally agree with @Markus: the more correct and advanced way is to use anti-affinity. This is really powerful and at the same time simple solution to prevent scheduling pods with the same labels to 1 node.