Windows Containers on windows and linux Kubernetes cluster
Below are the details from the Kubernetes Windows Documentation.
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:
apiVersion: v1kind: Podmetadata: name: iislabels: name: iisspec: containers: - name: iis image: microsoft/iis:windowsservercore-1709 ports: - containerPort: 80 nodeSelector: "beta.kubernetes.io/os": windows
You would need to add following lines to your YAML file. Details are available here https://kubernetes.io/docs/getting-started-guides/windows/
nodeSelector: "beta.kubernetes.io/os": windows