AKS Deployment
AKS Deployment
Azure Kubernetes Deployment
Steps to create AKS cluster
- Login to Azure cloud
az login
- Create a resourceGroup
az group create --name demoResourceGroup --location westus
- Run the below command to create cluster with ssh key to login to node.
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --generate-ssh-keys --attach-acr <acrName>
Above command take upto 5 mins
- Download kubeconfig file
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
- Verify connection to your cluster using the kubectl get nodes command, which returns a list of cluster nodes.
kubectl get nodes