Kubernetes scheduler

81

The Kubernetes scheduler is a control plane process which assigns Pods to Nodes. Scheduling refers to making sure that Pods are matched to Nodes so that Kubelet can run them.

kube-scheduler is the default scheduler for Kubernetes and runs as part of the control plane.

Stuff you wanna know:

  1. A scheduler watches for newly created Pods that have no Node assigned. For every Pod that the scheduler discovers, the scheduler becomes responsible for finding the best Node for that Pod to run on.
  2. The scheduler determines which Nodes are valid placements for each Pod in the scheduling queue according to constraints and available resources. The scheduler then ranks each valid Node and binds the Pod to a suitable Node.
  3. Multiple different schedulers may be used within a cluster; kube-scheduler is the reference implementation.

More stuff: