Azure Kubernetes Service (AKS)
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.
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
kubectl get deployments --namespace kube-system
No comments:
Post a Comment