<p>I'm kind of new to the Kubernetes world. In my project we are planning to use windows containers(.net full framework) in short term and linux containers(.net core) for the long run.</p>

<p>We have a K8 cluster provided by infrastructure team and the cluster has mix of Linux and Windows nodes. I just wanted to know how my windows containers will only be deployed to windows nodes in the K8 cluster. Is it handled by K8 or Do I need anything else ?</p>

<p>Below are the details from the <a href="https://kubernetes.io/docs/getting-started-guides/windows/" rel="nofollow noreferrer">Kubernetes Windows Documentation</a>.</p>
<blockquote>
</blockquote>
<p>Because your cluster has both Linux and Windows nodes, you must explicitly set the nodeSelector constraint to be able to schedule pods to Windows nodes. You must set nodeSelector with the label beta.kubernetes.io/os to the value windows; see the following example:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: iis
labels:
  name: iis
spec:
  containers:
    - name: iis
      image: microsoft/iis:windowsservercore-1709
      ports:
        - containerPort: 80
  nodeSelector:
    &quot;kubernetes.io/os&quot;: windows
</code></pre>
