Provision Cloud Infrastructure
Last updated
Last updated
To create AKS cluster follow the steps given below to create the Kubernetes cluster in Azure. The AKS cluster and VM’s should be in same vnet. If they are in different vnet, you have to peer the vnets. To successfully peer, the IP address of the vnets should not overlap.
Create a service principal and assign a contributor role to the service principal. Ref:
Get the secrets and client ID of service principal
Create the AKS cluster either via the Azure portal or using az aks
command line
Refer to Azure documentation for all the available options
Below is a sample command that you can use
Note: Ensure you have allocated at least 1024 IPs for your Kubernetes subnet (CIDR notation as x.x.x.x/22)
Get the kubeconfig file for your cluster with the below command -
Update the CORS rule for the storage account as follows:
Disable Secure transfer required in storage account configuration
Object storage with CORS enabled
Virtual network to host VM's and Kubernetes cluster
Kubernetes cluster with 5 worker nodes each node with 4 Core, 16GB RAM configuration
Create Compute Instances/VM's as mentioned in pre-requisites section
Make sure kubernetes cluster and VM's can communicate with each other