Azure AKS cluster basics¶
- Make sure you have the
azcommand line interface installed.
- If you'd like help installing the CLI, check out this page
for instructions. Make sure to initialize your Azure credentials via
Create your AKS Cluster¶
Creating a kubernetes AKS cluster on Azure is very well documented on this page.
Create a Resource group for AKS to use, choosing the region you want the cluster resources to to use:
Create the AKS cluster
az aks create \ --resource-group <RESOURCE_GROUP> \ --name <CLUSTER_NAME> \ --node-count 4 \ --generate-ssh-keys \ --vm-set-type VirtualMachineScaleSets \ --load-balancer-sku standard
Go get a cup of coffee. This is going to take a few minutes.
When the provisioning is complete get the kubeconfig credentials for
Run the following command to check your cluster's configuration which should return something akin to the following
This should return something similar to this
Now you should be all set to connect to this cluster using Sextant.
Using your Azure AKS Cluster¶
Now that you have created this cluster you can add it to list of the target clusters available to Sextant by following the instructions here.
Alternatively if you intend to install Sextant on this cluster then you can do so by following the instructions here.
Delete AKS cluster¶
It's important to tear down any resources you aren't actively using. Otherwise, you will incur charges from Azure.
- Before deleting your AKS cluster, delete the active deployment using Sextant.
- Then, delete any provisioned clusters in Sextant.
- Run the following command to delete the AKS Resource Group that contains your cluster:
* Please note this may take some time.