What is Kubernetes and how to create a kubernetes cluster with Microsoft Azure Kubernetes Service…

Let’s create Azure Kubernetes Service with Azure Portal

--

Kubernetes is an open-source framework for managing containerized workloads and services that allows declarative configuration as well as automation. It has a huge and fast-expanding ecosystem. Services, support, and tools for Kubernetes are widely available.

What is container management?

Kubernetes divides an application’s containers into logical units for easier administration and discovery. The process of arranging, adding, removing, or updating many containers is known as container management. Kubernetes keeps track of all your cloud-deployed container apps. It automatically restarts orphaned containers, shuts them down when they’re not in use, and provisions resources like memory, storage, and CPU when they’re needed.

A container orchestrator is a system that manages and installs containerized apps automatically. The orchestrator, for example, can adjust the number of deployed instances of the managed app in response to changes in the environment. If a new version of a service is available, it can automatically update all deployed container instances.

Kubernetes Benefits

· Portability and flexibility.

· Multi-cloud capability.

· Increased developer productivity.

· Open source.

· Proven and battle tested.

· Market leader.

How Kubernetes Works?

Kubernetes works like an Operating System. Kubernetes monitors your container applications applied to the cloud. It restarts orphaned containers, closes them when not in use, and automatically provides resources such as memory, storage, and CPU when needed.

What is the Azure Kubernetes cluster?

Azure Kubernetes Service (AKS) offers server-less Kubernetes, an integrated continuous integration and continuous delivery (CI/CD) experience, and enterprise-grade security and governance. Build, provide and expand apps with confidence along with your development and operating teams on a single platform.

How does Kubernetes cluster work?

There is one master node and a range of working nodes in the Kubernetes clusters. Depending on the cluster, these nodes may be actual or virtual computers. The master node checks the cluster status; for example, it controls which apps run and their container pictures.

How to create a Kubernetes cluster with Microsoft Azure.

Steps to create AKS cluster;

Step 01 — Search for Kubernetes Services in the search bar in Azure portal.

Step 01

Step 02 — After directing to the Kubernetes Services page, then click add Kubernetes cluster.

Step 02

Step 03 — Now you have to add the specifications in the cluster.

1. Add a subscription to the resource group as your requirement.

Ex: pay as you go, free trial, visual studio subscription

2. Then add a name for the resource group. Click create new and add a name for the resource group.

3. Then give a name for your Kubernetes cluster.

4. Then add a region and keep the Kubernetes service as default.

Step 03

Step 04 — Next you have to set a node size. Here, we are choosing standard Ds2 v2 node size, It has 2 vCPUs, 7 GiB RAM, 8 Data Disks, 14 GiB Temp Storage.

Step 4

Step 05 — Next, in the authentication part select as below.

Authentication method — System assigned managed identity.

Role-Based Access Control (RBAC) — Enabled

AKS-managed Azure active directory — disabled

Step 05

Step 06 — Then go to review + create part and give create. After that it will validate your cluster and then will create your AKS cluster.

Step 06

Step 07 — Now you can see that your cluster has created successfully. Next, you have to connect the cluster.

Step 07

Step 08 — Go to the Kubernetes cluster to view your AKS cluster.

Step 08

Step 09 — Next, we have to connect to the Azure Kubernetes Cluster. We can use Cloud shell or Azure CLI to connect.

1. Go to overview and click connect.

2. Then run the commands which is shown in number 2.

Step 09

Once you have run the commands to connect the cluster( number 2) you can run any kublectl commands.

Ex: To get the Nodes running in our cluster, run the following command, and you will see all the nodes in your AKS cluster.

$ kubectl get nodes

If you want to succeed in container management, Kubernetes is the way to go. If you have observed the above steps, you can activate a bunch of AKS. But keep an eye out for what Microsoft is doing with AKS and Azure. AKS is constantly evolving and will provide new capabilities almost every day. Super cool new capabilities are also coming fast.

--

--