What happens when you run kubectl apply
The Kubernetes scheduler: how a pod gets its node
A Kubernetes cluster has many nodes. Some are busy, and some are nearly empty. Every new pod goes to exactly one node. If you had to choose the node, how would you choose?
-
1
None of your 3 pods has a node yet. Such a pod is Pending: accepted by the cluster, and not running yet.
-
2
One program of the control plane picks a node for each pod that has none: the scheduler. It takes your pods one at a time.
The rest of this episode is for subscribers
Subscribe to read every premium episode. You can cancel when you want.
Paid yearly: $99 instead of $119.88