Katonic can natively run using an EKS cluster hosted on your own AWS account and an EKS cluster can also be used to run all your katonic job. This allows you to leverage katonic and Kubernetes to create one flexible compute and DS environment.
In this guide, you will learn how to:
- Create a AKS cluster using the Azure CLI
Creating an AKS cluster requires certain permissions within Azure. To be able to complete the guide and create the cluster, ensure your user account has been added to an Azure subscription with the role contributor. You can then create the cluster using the subscription.
Of course, any permission level higher than contributor should also be suitable.
Before you can complete the installation you must install and prepare the following dependencies on your local machine:
NOTE You can skip this step if you have already logged in to the azure CLI and set the subscription for your account.
To be able to setup the cluster you will first need to log in to your Azure account in the Azure portal and create a subscription (for example, Pay As You Go).
To connect with your Azure account, use the Azure CLI:
TIP If you have multiple Azure Active Directories, you can specify the directory to use with the --tenant flag.
- Set your subscription. Fill in the name of you subscription at the beginning with the correct information for your cluster:
NOTE You can skip this step if you have already created a resource group.
If you do not yet have a group made for the katonic resources within Azure, create one with the following command. You will need to choose a location for the resources and a subscription. The location will affect which resources are available. Fill in the variables at the beginning with the correct information for your cluster:
TIP You can get a list of all available locations by running the following command:az account list-locations
To create the cluster in Azure, use the following command. Fill in the variables at the beginning with the correct information for your cluster:
Running the following command will save the kubeconfig for the new cluster locally. This allows you to be able to interact with it using kubectl.
The kubeconfig will be saved in ~/.kube/config
Run the following command to get a list of the nodes in the cluster. If this command runs correctly and returns the list of nodes, everything is working as expected:
Congratulations, you have now set up a working AKS cluster in Azure!