Getting Started With Kubernetes: Introduction and Architecture
Tags: beginners, kubernetes
Published: 2022-10-24 08:57:39


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqv2lxmljfofqa6vhsee.png)


## What is Kubernetes?
Kubernetes also known as K8S is a portable, extensible, open source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. Kubernetes provides you with a framework to run distributed systems resiliently. It takes care of scaling and failover for your application, provides deployment patterns, and more.

## Why Kubernetes?
 One of the primary reasons why K8s became so popular is the ever-growing demand for businesses to support their micro service-driven architectural needs.

Microservice architecture helps companies in :

- Independently develop and deploy their complex applications by breaking them into small scalable modules.

- Help them work in multiple small teams supporting individual application modules, to be developed and deployed with the required speed and agility.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crt3uawjeb6zb9nqiwgo.png)

## Architecture
Kubernetes has a cluster which contains **master** and **worker** nodes. Master node is responsible for taking the task from user and deploy it on worker nodes. 

### Master Node
The master node is used to manage the states of a cluster. It is actually an entry point for different types of administrative tasks.

Following are the four different components that exist in the Master node:

1. **<u>API Server</u>**: This component is responsible for all communication that is from user to master node, master to worker node and vice-versa. 

2. **<u>Scheduler</u>**: The scheduler in a master node schedules the tasks to the worker nodes. And, for every worker node, it is used to store the resource usage information.

3. **<u>Controller Manager</u>**: The Controller manager is also known as a controller. It is a daemon that executes in the non-terminating control loops. The controllers in a master node perform a task and manage the state of the cluster.

4. **<u>ETCD</u>**: It is an open source, distributed key-value database. It is a part of a master node that is written in a GO programming language.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/che5dcge7hb81fwuttfj.png)

### Worker Node
The Worker node in a Kubernetes is also known as minions. A worker node is a physical machine that executes the applications using pods.

Following are the three main components that exist in the Worker Node:

1. **<u>Kubelet</u>**: kubelet is a primary node-agent of the worker node, which interacts with both node and the container in the given worker node. It communicates to API-Server then master node can talk to worker node. 

2. **<u>Kube-proxy</u>**: It is a core networking component on each node responsible for maintaining network configuration and rules. It exposes services/pods to the outside world. The main aim of this component is request forwarding. 

3.**<u> Container Runtime</u>**: It is a software that is responsible for running containers. Example → Docker, CRIO, Kubernetes CRI, etc.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ud1a8y333qhap6y8lj4z.png)

## Conclusion
In this article, We have only learnt what is Kubernetes, why to use it and it's architecture.
If you enjoyed this article then please share it with your buddies and if you have suggestions or thoughts to share with me then please write in the comment box.
The above blog is submitted under **'Devtron Hacktoberfest 2022'** conducted by [Devtron](https://devtron.ai/). Check out their Github repo and give it a star ⭐️ if you like it. Follow Devtron on [LinkedIn](https://www.linkedin.com/company/devtron-labs/), [Twitter](https://twitter.com/DevtronL)