Kubernetes Worker Nodes
Learn what worker nodes do in Kubernetes.
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:
# list all the nodeskubectl get node# view nodes with extra infomationkubectl get node -o wide
Now, let’s run the commands above in the terminal below:
The output will be as follows:
NAME STATUS ROLES AGE VERSIONeducative-demo-control-plane Ready control-plane 53s v1.24.0educative-demo-worker NotReady <none> 16s v1.24.0educative-demo-worker2 NotReady <none> 15s v1.24.0
Here’s a detailed view of the ...