AdvancedLesson 25 of 35
Inside the control plane
What happens when you run kubectl apply.
kubectlsends the object to the API server, which authenticates, authorises (RBAC), runs admission, validates it and stores it in etcd.- The Deployment controller notices and creates a ReplicaSet; the ReplicaSet controller creates pods.
- The scheduler picks a node for each unscheduled pod (filter, then score).
- The node's kubelet sees the assignment and asks the container runtime to start containers.
- kube-proxy and the CNI plugin set up networking.
Everything is a reconcile loop: observe actual state, compare with desired state, act. etcd is the only stateful component, which is why backing it up matters.