Kubernetes: What actually happens when we perform kubectl apply?

A deep dive under the hood

David Chong
Level Up Coding
Published in
3 min readDec 11, 2023

--

High level K8s architecture (Illustrated by Author)

So recently, I was asked this question during an interview: What happens under the hood when we perform kubectl apply -f? I mean, having written an article about an overview of Kubernetes, you’d expect me to know the answer, right? Nope.

--

--