Installing and Maintaining Azure Kubernetes Cluster with Multi Pool Nodes (Preview) #Winserv

%3CLINGO-SUB%20id%3D%22lingo-sub-663635%22%20slang%3D%22en-US%22%3EInstalling%20and%20Maintaining%20Azure%20Kubernetes%20Cluster%20with%20Multi%20Pool%20Nodes%20(Preview)%20%23Winserv%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-663635%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20953px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116919i01CD697348402475%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22KubeCluster%2015.PNG%22%20title%3D%22KubeCluster%2015.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%3CSTRONG%3EInstall%20AKS-Preview%20extension%20via%20Azure%20Cloudshell%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20left%3B%22%3E%3CSTRONG%3ENOTE%20!%20This%20is%20a%20Preview%20blogpost%2C%3C%2FSTRONG%3E%20do%20not%20use%20in%20production!%20(only%20for%20test%20environments)%3CBR%20%2F%3ETo%20create%20an%20AKS%20cluster%20that%20can%20use%20multiple%20node%20pools%20and%20run%20Windows%20Server%20containers%2C%20first%20enable%20the%20Windows%20Preview%20feature%20flags%20on%20your%20subscription.%20The%20Windows%20Preview%20feature%20also%20uses%20multi-node%20pool%20clusters%20and%20virtual%20machine%20scale%20set%20to%20manage%20the%20deployment%20and%20configuration%20of%20the%20Kubernetes%20nodes.%20Register%20the%20Windows%20Preview%20feature%20flag%20using%20the%20az%20feature%20register%20command%20as%20shown%20in%20the%20following%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20left%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116920iB783DBE231C26257%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22KubeCluster%2016.PNG%22%20title%3D%22KubeCluster%2016.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20Have%20registered%20the%20following%20Preview%20Features%20from%20the%20Azure%20CloudShell%20%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CEM%3Eaz%20feature%20register%20%E2%80%93name%20WindowsPreview%20%E2%80%93namespace%20Microsoft.ContainerService%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CEM%3Eaz%20feature%20register%20%E2%80%93name%20MultiAgentpoolPreview%20%E2%80%93namespace%20Microsoft.ContainerService%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CEM%3Eaz%20feature%20register%20%E2%80%93name%20VMSSPreview%20%E2%80%93namespace%20Microsoft.ContainerService%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20will%20take%20a%20few%20minutes%20and%20you%20can%20check%20the%20registration%20with%20the%20following%20command%20%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Eaz%20feature%20list%20-o%20table%20%E2%80%93query%20%E2%80%9C%5B%3Fcontains(name%2C%20%E2%80%98Microsoft.ContainerService%2FWindowsPreview%E2%80%99)%5D.%7BName%3Aname%2CState%3Aproperties.state%7D%E2%80%9D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWhen%20ready%2C%20refresh%20the%20registration%20of%20the%20Microsoft.ContainerService%20resource%20provider%20using%20the%20az%20provider%20register%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116921i7491DE95101C10FA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22KubeCluster%2017.PNG%22%20title%3D%22KubeCluster%2017.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20style%3D%22border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20color%3A%20%23777777%3B%20font-family%3A%20%26amp%3Bquot%3B%20droid%20sans%26amp%3Bquot%3B%2Carial%2Csans-serif%3B%20font-size%3A%201.3em%3B%20font-size-adjust%3A%20none%3B%20font-stretch%3A%20normal%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20bold%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.4%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20vertical-align%3A%20baseline%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%3B%20margin%3A%2026px%200px%2012px%200px%3B%20border%3A%200px%20none%20currentColor%3B%22%20id%3D%22toc-hId-1764734117%22%20id%3D%22toc-hId-1764734117%22%3ECreating%20Azure%20Kubernetes%20Cluster%3C%2FH2%3E%0A%3CP%20style%3D%22border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20color%3A%20%23777777%3B%20font-family%3A%20inherit%3B%20font-size%3A%20100%25%3B%20font-size-adjust%3A%20none%3B%20font-stretch%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant%3A%20inherit%3B%20font-weight%3A%20inherit%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%20inherit%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20vertical-align%3A%20baseline%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%2020px%200px%3B%20margin%3A%200px%3B%20border%3A%200px%20none%20currentColor%3B%22%3EFirst%20you%20create%20a%20Resource%20Group%20in%20the%20right%20Azure%20Region%20for%20your%20AKS%20Cluster%20to%20run%3A%3C%2FP%3E%0A%3CP%20style%3D%22border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20color%3A%20%23777777%3B%20font-family%3A%20inherit%3B%20font-size%3A%20100%25%3B%20font-size-adjust%3A%20none%3B%20font-stretch%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant%3A%20inherit%3B%20font-weight%3A%20inherit%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%20inherit%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20vertical-align%3A%20baseline%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%2020px%200px%3B%20margin%3A%200px%3B%20border%3A%200px%20none%20currentColor%3B%22%3Eaz%20group%20create%20%E2%80%93name%20myResourceGroup%20%E2%80%93location%20eastus%3C%2FP%3E%0A%3CP%20style%3D%22border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20color%3A%20%23777777%3B%20font-family%3A%20inherit%3B%20font-size%3A%20100%25%3B%20font-size-adjust%3A%20none%3B%20font-stretch%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant%3A%20inherit%3B%20font-weight%3A%20inherit%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%20inherit%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20vertical-align%3A%20baseline%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%2020px%200px%3B%20margin%3A%200px%3B%20border%3A%200px%20none%20currentColor%3B%22%3EI%20created%20Resource%20Group%20KubeCon%20in%20location%20West-Europe.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20color%3A%20%23777777%3B%20font-family%3A%20inherit%3B%20font-size%3A%20100%25%3B%20font-size-adjust%3A%20none%3B%20font-stretch%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-variant%3A%20inherit%3B%20font-weight%3A%20inherit%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%20inherit%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20vertical-align%3A%20baseline%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%2020px%200px%3B%20margin%3A%200px%3B%20border%3A%200px%20none%20currentColor%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116922i0DE3570301437D61%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Create%201.PNG%22%20title%3D%22Create%201.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%3CSTRONG%3ECreating%20KubeCluster%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3ERead%20here%20the%20complete%20blogpost%20on%20my%20%3CA%20href%3D%22https%3A%2F%2Fmountainss.wordpress.com%2F2019%2F05%2F28%2Finstalling-and-maintaining-azure-kubernetes-cluster-with-multi-pool-nodes-preview-for-linux-winserv-containers%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSTRONG%3ECloud%20and%20Datacenter%20Management%20blog%3C%2FSTRONG%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20929px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116923i84881F25D992308D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22kubernetes-containers-banner.png%22%20title%3D%22kubernetes-containers-banner.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-663635%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMonitoring%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

KubeCluster 15.PNG

 

Install AKS-Preview extension via Azure Cloudshell

 

NOTE ! This is a Preview blogpost, do not use in production! (only for test environments)
To create an AKS cluster that can use multiple node pools and run Windows Server containers, first enable the Windows Preview feature flags on your subscription. The Windows Preview feature also uses multi-node pool clusters and virtual machine scale set to manage the deployment and configuration of the Kubernetes nodes. Register the Windows Preview feature flag using the az feature register command as shown in the following example:

 

KubeCluster 16.PNG

 

I Have registered the following Preview Features from the Azure CloudShell :

  • az feature register –name WindowsPreview –namespace Microsoft.ContainerService
  • az feature register –name MultiAgentpoolPreview –namespace Microsoft.ContainerService
  • az feature register –name VMSSPreview –namespace Microsoft.ContainerService

This will take a few minutes and you can check the registration with the following command :

  • az feature list -o table –query “[?contains(name, ‘Microsoft.ContainerService/WindowsPreview’)].{Name:name,State:properties.state}”

When ready, refresh the registration of the Microsoft.ContainerService resource provider using the az provider register command:

 

KubeCluster 17.PNG

 

Creating Azure Kubernetes Cluster

First you create a Resource Group in the right Azure Region for your AKS Cluster to run:

az group create –name myResourceGroup –location eastus

I created Resource Group KubeCon in location West-Europe.

 

Create 1.PNG

Creating KubeCluster

Read here the complete blogpost on my Cloud and Datacenter Management blog

 

 

kubernetes-containers-banner.png

 

0 Replies