Dev.to
7/21/2026

The original title is: "What Happens When You Run kubectl apply: A Kubernetes Lifecycle Walkthrough"
Original: 🤔 What Really Happens When You Run kubectl apply? Episode 3
Short summary
A detailed walkthrough of what happens when you run 'kubectl apply', tracing the request from the API Server through ETCD storage, Controller Manager reconciliation, ReplicaSet creation, Scheduler node assignment, and finally Kubelet/container runtime execution. The article explains each Kubernetes control plane component's role in transforming a YAML manifest into running pods, making the internal mechanics accessible to beginners.
- •kubectl apply sends YAML to API Server which validates and stores desired state in ETCD
- •Controller Manager reconciles desired vs actual state, creating ReplicaSets and Pods automatically
- •Scheduler assigns pods to nodes via filtering and scoring; Kubelet and container runtime finish the job
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



