There are a few different ways to create a Kubernetes Cluster on Azure. The following guide utilizes Terraform to provision an Azure AKS cluster.
Step 1: Install Prerequisits
Step 2: Azure Setup
You need an Azure account which you can log into the azure CLI with:
Next, create a service principal account so Terraform can authenticate to Azure:
Note: the resulting output only appears once. Save the appId and password immediately. Otherwise it takes non-trivial effort to retrieve the information.
Step 3: Terraform Apply
Clone the repository below and
cd into the aks directory
Open 'terraform.tfvars', and paste in the appId and password from Step 2.
Install the cluster with the following commands.
yes to confirm the installation.
After 5-10 minutes, the cluster should be created. Once complete, record the kubernetes_cluster_name and resource_group_name from the terraform output.
Configure kubectl to use the new cluster.
Verify the cluster is properly setup and accessible.
Step 4: Install Kalm
Once the cluster is setup, install Kalm with the following command.
To enable localhost access, open a port via:
Now open http://localhost:3010/
Delete the cluster to avoid resource charges.
You've now setup Kalm on an Azure AKS cluster. To get a sense of how Kalm works, see the Hello Kalm tutorial.