aksctl is an easy to use CLI(Command Line Utility) for creating and managing Kubernetes Cluster on Azure AKS ( Azure Kubernetes Service). It is written in Go.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to have Azure credentials configured. What works for AZ CLI should be sufficient. If you dont have Azure CLI installed, you can refer here
To install aksctl, clone the repository using:
git clone https://github.com/adfolks/aksctlThen, initiate module with:
go mod init github.com/adfolks/aksctlThis will create a module config file go.mod.
Finally, use
go buildto fetch the latest dependencies.
A default cluster can be created by running:
aksctl create clusterA cluster with default parameters will be created.
Example:
Running the code
aksctl create resourcegroup --name myresourcegroup --region eastuscreates a resource group with the name myresourcegroup and region set to eastus.
You can also customize your cluster by using a config file.
For this, create a .yaml file like cluster.yaml.
Next, run the command:
aksctl create cluster -f cluster.yamlto apply the cluster.yaml file.
This will create a cluster as described in the file.
aksctl can be installed by following the above instructions.
Check aksctl.io to learn more abut what aksctl can do and its features.
- Go