Before creating an AKS cluster for our application, we must first set up the required networking with the following steps.
VERSION=$(az aks get-versions \
--location $REGION \
--query 'orchestrators[?!isPreview] | [-1].orchestratorVersion' \
--output tsv)
echo $VERSION
CLUSTER_NAME=jfrog-azure-workshop-cluster
echo $CLUSTER_NAME
az aks create \
--resource-group $RESOURCE_GROUP \
--name $CLUSTER_NAME \
--vm-set-type VirtualMachineScaleSets \
--node-count 2 \
--load-balancer-sku standard \
--location $REGION \
--kubernetes-version $VERSION \
--network-plugin azure \
--generate-ssh-keys \
--enable-managed-identity
az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME
A kubeconfig file is a file used to configure access to Kubernetes clusters when used in conjunction with the kubectl commandline tool (or other clients).
cat ~/.kube/config