What is Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS) is a managed container orchestration service, based on the open source Kubernetes system, which is available on the Microsoft Azure public cloud. AKS allows you to quickly deploy a production ready Kubernetes cluster in Azure, deploy and manage containerized applications more easily with a fully managed Kubernetes service.
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. The Kubernetes masters are managed by Azure. You only manage and maintain the agent nodes. As a managed Kubernetes service, AKS is free - you only pay for the agent nodes within your clusters, not for the masters.
Pre-requisites:
- Azure CLI is installed
- Account setup in Azure.
- Install kubectl. Click here to learn how to install on Ubuntu
We will see how to create AKS cluster in portal Azure.
1. go to https://portal.azure.com/#home
2. Click on Kubernetes services
3. Click on Add Kubernetes Cluster
5. Enter node count as 2, choose standard size
6. Click on Create after making sure validations are passed:
This is will take at least 2 to 5 mins to create AKS clusters. If all goes well, you should be able to see the cluster.
Once it is created, go to Kubernetes Services, click on cluster name.
Now click on the cluster name, click on connect.
Make sure you have Azure CLI is installed on your local machine in order to connect to AKS cluster.
Connect to Azure portal using Azure CLI first.
az login
Enter your Microsoft credentials
az account set --subscription subscription_id
az aks get-credentials --resource-group AKS-POC --name AKS-POC
# List all deployments in a specific namespace
kubectl get deployments --all-namespaces=true
# List all deployments in a specific namespace
kubectl get deployments --namespace kube-system
Please watch how to create AKS cluster in Azure port using below video:
How to Deploy Springboot Microservices App into AKS Cluster using Azure Pipeline?
Click on the below link to learn how to deploy Microservices into AKS cluster from Azure Pipelines.
https://www.coachdevops.com/2022/06/how-to-deploy-docker-containers-into.html