Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

What happens when you run `kubectl apply -f deploy.yaml`?

BeginnerScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → Walk through the flow.

What I'd do →

  1. kubectl sends the object to the API server after authentication and authorization
  2. Admission controllers mutate and validate
  3. The object is persisted in etcd
  4. Deployment controller creates a ReplicaSet, which creates pods
  5. Scheduler binds pods, kubelet starts containers via CRI

Why → It is a chain of watch-driven controllers.

Interview tip → Mention the watch mechanism.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents