Sobes.tech
Junior — Middle

Which Kubernetes components are responsible for automatic pod migration between worker nodes?

sobes.tech AI

Answer from AI

The following components ensure automatic pod migration between worker nodes in Kubernetes:

  • kube-scheduler — responsible for assigning pods to nodes, considering available resources and constraints.
  • kube-controller-manager, particularly controllers like ReplicaSet or Deployment, monitor the state of pods and create new ones on other nodes if necessary.
  • kubelet on each node — monitors the state of pods and reports issues.

If a node becomes unavailable, controllers create new pods on other nodes, and old pods on the unavailable node are considered lost. Thus, migration occurs through deleting pods on one node and creating them on another, rather than through direct movement.