- January 3, 2018
- Posted by: Harmeek Jhutty
- Category: Azure, Kubernetes
In this post, we’ll take you through the basics of setting up a Kubernetes Cluster on Azure Container Service (AKS), the Microsoft cloud service to manage your hosted Kubernetes environment. By the end of it, you’ll have a one node cluster up and running in AKS.
Install Azure CLI
You will need the Azure CLI version 2.0.21 or later installed and configured. Run
az --version to find the version. If you need to install or upgrade, see Install Azure CLI.
To manage a Kubernetes cluster, you will need to install kubectl, the Kubernetes command-line client. You can install it by running the following command
Login to Microsoft Azure account
Sign in to your Microsoft Azure Portal or use Azure CLI command (recommended) i.e.
Create Kubernetes Cluster on Azure
For GUI, navigate to Azure Container Service(AKS) , click Create and follow prompts.
But we will be using Azure CLI going forward 🙂
Create resource group for you cluster:
Next, Create Cluster by running the following command:
Connect to the Cluster
Configure kubectl cli to point to your cluster
Now, you should now be able to verify and view nodes in your cluster
That’s it! You are all set and ready to use your new Kubernetes cluster in AKS.
in the next post, we will demonstrate how to run applications in your new Kubernetes cluster on Azure.