🎓 A1Learner
🔍
0 of 51 lessons completed

Kubernetes: The Worker Node

The worker node is a machine that runs containers for a cluster. It takes orders from the control plane and reports back what it sees.

The kubelet follows orders

The control plane assigns a pod to a node. The kubelet on that node starts it.

kubectl get pods -o wide

The kubelet watches containers

A container stops. The kubelet sees it and restarts it on the same node.

kubectl get pods

containerd runs the container

The kubelet asks the runtime to start a container. containerd does the work.

kubectl get nodes

Example

kubectl get pods -o wide

Key points

  • kubelet: the agent on a node that starts containers and watches them.
  • kube-proxy: the part that routes network traffic to the right pod.
  • Container runtime: the software that actually starts and stops containers.
  • containerd: the container runtime this course uses.
  • Pod: the smallest thing Kubernetes runs, holding one or more containers.
  • Use the command line tool to see which node runs each pod.

In this example, the command lists the pods with extra columns. The output shows one pod called web. Its address is 10.244.0.5. The node column shows which worker node runs this container.

Note

A node can also host control plane parts.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

Which part on a worker node starts and watches containers?