<p>I have been working on the deployment of windows container from Azure Container Registry to Azure Container Service with Kubernetes Orchestra it was working fine previously. 
Now I'm trying to create an acs kubernetes cluster of windows but the create command is only creating a master node and while deploying I'm getting the following error <strong>No nodes are available that match all of the following predicates:: MatchNodeSelector (1)</strong></p>

<p>I have followed this link <a href="https://learn.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-windows-walkthrough" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-windows-walkthrough</a> to create the windows based kubernetes cluster.</p>

<p>This is the command I have used to create the cluster</p>

<pre><code>az acs create --orchestrator-type=kubernetes \
    --resource-group myResourceGroup \
    --name=myK8sCluster \
    --agent-count=2 \
    --generate-ssh-keys \
    --windows --admin-username azureuser \
    --admin-password myPassword12
</code></pre>

<p>As per the above documentation, the above command should create a cluster named myK8sCluster with one Linux master node and two Windows agent nodes.</p>

<p>To verify the creation of cluster I have used the below command</p>

<pre><code>kubectl get nodes

NAME                    STATUS  AGE       VERSION
k8s-master-98dc3136-0   Ready   5m        v1.7.7

</code></pre>

<p>According to the above command, it shows that it created only the Linux master node, not the two windows agent nodes.</p>

<p>But in my case I require the windows agent nodes to deploy a windows based container in the cluster.</p>

<p>So I assume that due this I'm getting the following error while deploying  <strong>No nodes are available that match all of the following predicates:: MatchNodeSelector (1)</strong></p>

<p>As the documentation points out, ACS with a target of Kubernetes is deprecated. You want to use AKS (Azure Kubernetes as a Service). </p>

<p>To go about this, start here: <a href="https://learn.microsoft.com/en-us/azure/aks/windows-container-cli" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/windows-container-cli</a></p>

<p>Make sure you have the <a href="https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest" rel="nofollow noreferrer">latest version of the CLI</a> installed on your machine if you choose to do it locally, or use the <a href="https://learn.microsoft.com/en-us/azure/cloud-shell/overview" rel="nofollow noreferrer">Azure Cloud Shell</a>.</p>

<p>Follow the guide on the rest of the steps as it will walk you through the commands.</p>
