Azure Kubernetes Service

The Azure Kubernetes Service (AKS), is an extremely simple service to launch and configure. I will be using the Azure command-line tools on my local machine; you will also be able to use the command-line tools by using the Azure Cloud Shell which is built into the Azure Portal.

The first thing we will need to do is create a resource group to launch our AKS cluster into. To create one called MasteringDockerAKS, run the following command:

$ az group create --name MasteringDockerAKS --location eastus

Now that we have the resource group, we can launch a two node Kubernetes cluster by running the following command:

$ az aks create --resource-group MasteringDockerAKS \    --name MasteringDockerAKSCluster \ --node-count 2 \ ...

Get Mastering Docker - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.