kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch01/aks
2024-02-20 17:15:27 +08:00
..
README.md 新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件 2024-02-20 17:15:27 +08:00

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