<p>I have a cluster having 2 nodes and one of the nodes is labelled as "SS" for node selector.</p>

<p>I have three services and one service should be deployed in node selector node(which is happening properly) and the other two services should be deployed in another node</p>

<p>How to deploy the remaining services should be deployed in a node(which is not been labelled)?</p>

<p>I don't want to use a node selector also for the other two services.</p>

rakeshh92
<p>You can use <a href="https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity" rel="nofollow noreferrer">Node Affinity</a></p>

<pre><code>spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: &lt;label-key&gt;
            operator: NotIn
            values:
            - SS
</code></pre>
