Kubernetes Architecture

In this tutorial, I will walk you through Kubernetes architecture, control plane, and worker node components.

Control plane makes global decisions i.e scheduling tasks and also maintains cluster details in an etcd component.

Control Plane

The Control plane is a global decision-maker, it is responsible for scheduling events. Containerized apps are scheduled on worker nodes based on the memory allocated on the YAML file. The Control plane starts new pods and terminates old ones when replica set values are not met.

Control plane components

  • Kube-apiserver. This is the frontend that exposes Kubernetes API. It validates and configures data for API objects, e.g pods, services, deployments, and replication controllers.
  • etcd (data store). It is used as kubernetes backing store for all cluster data. It is the Kubernetes backend and it uses etcd to monitor states i.e desired state and actual state.
  • Kube-scheduler. It assign unscheduled pods to different nodes based on its memory usage.
  • Kube-controller-manager. This runs control processes. A control process is a loop that focusses on making desired state equal to the current state. Some of the controller manager include node, job, endpoint and service account and token controllers.

Worker-node components

A worker node runs containerized applications and continuously reports to the control plane about the health of the cluster.

  • Kubelet. This an agent that runs on each node in a Kubernetes cluster. It ensures that the containers inside the pods are in an healthy state.
  • Kube-proxy. This is a network proxy that runs on each node in a kubernetes cluster. It maintains network rules on all nodes allowing easy communication between the pods elements.
  • Container runtime. It is a software responsible for running containers inside the cluster nodes.

About Kipkoech Sang

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Kipkoech Sang →

1 thought on “Kubernetes Architecture

Leave a Reply

Your email address will not be published.