Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.36 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.36 KB

Setting up a cluster on AKS that can support multiple nodepools

Enter the NodePools preview using the Azure CLI

You're going to follow the steps located in this document: https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools. Specifically:

  1. https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools#before-you-begin
  2. https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools#limitations

This may take a moment, so take your time when registering.

https://github.com/Azure/aks-windows-private-preview/blob/master/subscription-setup.md

Create your AKS cluster

Then you're going to create your cluster and enable additional nodepools when doing so.

NOTE: Even though the cluster you are creating is a Linux-node cluster, you're going to be creating the cluster to support multiple nodepools on VMSS (--enable-vmss) so that you can add a Windows nodepool in HelloIIS.

First, specify the values you want to use.

**IMPORTANT: You are going to want to either use the same session so that you can reuse the values you specified here, or write them down somewhere so that you can use them again.

export RESOURCE_GROUP=<your resource group name>
export CLUSTER_NAME=<your cluster name>
export PASSWORD_WIN=<your windows password: reasonably complex>
export USERNAME=azureuser
export LOCATION=<your location for the deployment>

Second, create the resource group.

az group create -l $LOCATION -g $RESOURCE_GROUP

Third, create the AKS cluster that supports nodepools.

az aks create \
    -g $RESOURCE_GROUP \
    -n $CLUSTER_NAME  \
    --windows-admin-password $PASSWORD_WIN \
    --windows-admin-username $USERNAME \
    --location $LOCATION \
    --generate-ssh-keys \
    -c 2 \
    --enable-vmss \
    --nodepool-name linux \
    --network-plugin azure \
    --kubernetes-version 1.13.5 
    --enable-addons monitoring

Next Steps

Once you have your cluster, type

az aks install-cli

which will install kubectl if you do not already have it on your machine.

Then acquire the cluster configuration file by typing:

az aks get-credentials -g $RESOURCE_GROUP -n $CLUSTER_NAME

and if you type kubectl config current-context you should see your cluster appear. If so, you are ready to practice with Helm 2.