In this Step-by-Step Guide we will Create a Microsoft Azure Kubernetes Cluster (AKS) and add it to Microsoft Visual Studio Code to manage and use it.
This time I have created the Kubernetes Cluster via the Azure Portal, when you don’t have an Azure Subscription you can start here
Azure Kubernetes Service (AKS) makes it simple to deploy a managed Kubernetes cluster in Azure. AKS reduces the complexity and operational overhead of managing Kubernetes by offloading much of that responsibility to Azure. As a hosted Kubernetes service, Azure handles critical tasks like health monitoring and maintenance for you. In addition, the service is free, you only pay for the agent nodes within your clusters, not for the masters.
You can of course also Create your Azure Kubernetes Cluster via Azure CLI in Cloudshell.
Here you see the steps from the Azure Portal to Create your Azure Kubernetes Cluster :
Fill in the Basics and Click on Authentication tab
Here you have your SPN and you can manage RBAC.
go to Networking TAB.
Network Settings, keep http application routing on yes.
Click on Monitoring TAB.
Azure Monitoring settings.
Review + Create will Validate your Configuration.
Click on Create.
It’s Deploying the Azure Kubernetes Cluster.
Here you find the Overview of your AKS Cluster in the Azure Portal.
Your Microsoft Azure Kubernetes Cluster is now running by Default with Azure monitoring enabled, and I like to have it in Microsoft Visual Studio Code.
Install the latest Azure CLI 2.0 version
(You need version 2.0.27 or higher)
my version of Azure CLI is 2.0.41
In the Next Visual Studio Code steps I’m already logged-in my Azure Subscription.
When you have Microsoft Visual Studio Code installed with the Kubernetes Extension you can Create or add Existing Cluster to VSC.
Choose Cluster type Azure Kubernetes Service
Choose the right Azure Subscription.
Here you will see your Azure Kubernetes Cluster
KubeCluster in my Azure Subscription
Now you Azure Kubernetes Cluster (AKS) is added to VSC 😉
When you right click on your Kubernetes Cluster you can open Dashboard.
Here you see my two-nodes in Kubernetes Dashboard.
Status of one Kubernetes node.
Here you see the pods (Containers) and also the Azure Monitoring Agent.
Now you can install or Build your solution on your Azure Kubernetes Cluster (AKS).
Monitoring and managing your AKS solution is important to see what is going on. That’s why the Azure Monitoring Agent is on by Default.
Here you see my Container Monitoring Solution for all my Containers.
( Azure AKS and Docker containers on-premises )
Health Overview of your AKS Cluster
Health overview of your AKS Nodes
Health Overview of your AKS Controllers
For Troubleshooting you can use the Azure logs of your solution and query what is wrong.
And Scaling your AKS Cluster is Never been Easier then this 🙂
Hope this Step-by-Step Guide is useful for you and your Business to start with Containerize your Apps in the Cloud