Search⌘ K
AI Features

Kubernetes Worker Nodes

Explore the architecture and functions of Kubernetes worker nodes, focusing on the kubelet and kube-proxy components. Understand how kubelet manages container lifecycles and registers nodes, while kube-proxy handles network traffic and load balancing for services. Gain insights into how static Pods work and how Kubernetes ensures healthy node status and reliable inter-Pod communication.

Components of worker nodes

On worker nodes, two Kubernetes components are running—kubelet and kube-proxy.

How kubelet works

The kube-apiserver, kube-scheduler, and kube-controller are running on the control plane nodes, while kubelet runs on worker nodes where actual containers run. The kubelet nodes are the workhorses of a Kubernetes cluster. They expose computational, networking, and storage resources to containers. We can run the kubelet on bare-metal servers, virtual machines (VMs), etc.

In a nutshell, the kubelet talks to the kube-apiserver and manages the containers running on it.

The kubelet, on start-up, registers itself to the kube-apiserver by creating a dedicated Node resource. Then, the kube-scheduler can see this Node and assign new Pods running on it.

We can view all the nodes with the commands given below:

Shell
# list all the nodes
kubectl get node
# view nodes with extra infomation
kubectl get node -o wide

Now, let’s run the commands above in the terminal below:

Terminal 1
Terminal
Loading...

The output will be as follows:

Markdown
NAME STATUS ROLES AGE VERSION
educative-demo-control-plane Ready control-plane 53s v1.24.0
educative-demo-worker NotReady <none> 16s v1.24.0
educative-demo-worker2 NotReady <none> 15s v1.24.0

Here’s a detailed view of the ...