kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch01/aks/README.md

805 B

A Kubernetes lab cluster in AKS

You'll need the az command installed and authenticated to your Azure subscription with the az login command.

Setup

Create resource group:

az group create --name kiamol --location eastus

Check the supported versions of Kubernetes:

az aks get-versions --location eastus -o table

Create cluster - using one of the supported versions:

az aks create -g kiamol -n kiamol-aks --node-count 1 --kubernetes-version 1.18.14

Get credentials to use the cluster with Kubectl:

az aks get-credentials --resource-group kiamol --name kiamol-aks

Teardown

Delete the resource group which will remove the cluster:

az group delete --name kiamol