Kubelet

Kubelet

In this tutorial, we are going to discuss Kubelet in Kubernetes. Kubelet is an agent which communicates with the Master node and executes on nodes or the worker nodes. The agent is responsible for making sure that the containers are running on the nodes as expected.

The Kubelet component that runs on all of the machines in your cluster and does things like starting PODs and containers.

The Kubelet in the Kubernetes worker node registers the node in the Kubernetes cluster. This is agent watches the Kube API server for pods assigned by the scheduler to its node, executes the task, and reports back to the Master.

It also monitors pods and reports back to the control panel if a pod is not fully functional. Based on that information, the Master can then decide how to allocate tasks and resources to reach the desired state.

This Kubelet agent will get a notification from the Kube API server, and it will then contact the container runtime like Docker. for example, to go out and pull images that require to run the pod.

For example, when the Kubelet agent receives instructions to load a container or a pod on the node, it requests the container runtime engine, which may be docker, to pull the required image and run an instance. The kubelet then continuously monitors the state of the pod and containers in it and reports to the Kube API server on a timely basis.

Kubelet in Kubernetes

Note

  • The kubelet doesn’t manage containers which were not created by Kubernetes.
  • When the control plane needs something to happen in a node, the kubelet executes the action.
Kubelet
Scroll to top