Node selector in Kubernetes

Before to use this feature, you should label the nodes. After that, if you want Kubernetes to place pod in a specific node, add to Pod definition file in the spec.nodeSelector:

...
spec:
  nodeSelector:
    size: Large
...
where size=Large is the label of target node.

You cannot provide advanced expressions like OR or NOT with Node Selectors. For this purpose you should use Node Affinity.