Running Windows Containers on Kubernetes Cluster on Azure Container Service

Aram Koukia Blocked Unblock Follow Following Nov 19, 2017

Creating the Resource Group

So to begin with we create a Resource Group to put all the resources that the Container Service creates in it, so we can manage them together more effectively.

You can either use the Azure Portal UI or use the Cloud shell to do so. Today I will try the Cloud Shell with the following command:

az group create --name acs-kubernetes-rg --location westus

You should see a “Succeeded” message like the following:

Creating the Kubernetes Cluster on Azure Container Service

I will continue with the Cloud Shell to create the Kubernetes Cluster. I will try the following command:

az acs create --orchestrator-type=kubernetes --resourcce-group acs-kubernetes-rg --name=myK8sCluster --agent-count=2 --generate-ssh-keys --windows --admin-username yourusername --admin-password YourPassword

This will create a Kubernetes Cluster with a Linux master node (Currently Kubernetes does not support Windows Master nodes) and 2 Windows nodes as agents.

As this cluster would need to create few VMs, and some more resources, it will take several minutes to complete (For me it took around 6 minutes) and at the end your should see an output like the following:

Now if you navigate to the Azure Portal resources, you should see all the stuff that was created for you in that Resource Group: