Kubernetes also known as K8s (Kates) was built by Google based on their experience running containers in production. It is now an open source project and is arguably one of the best and most popular container orchestration technologies. One of the core component of Kubernetes cluster, infact part of master server is - The API server . It acts as the front end for kubernetes. We interact with kubernetes cluster via CLI/SDK/API from API server itself. For CLI we use what is known as - kubectl. But have you ever imagined what happens when you run - kubectl apply ... command When you run: kubectl apply -f deployment.yaml Enter fullscreen mode Exit fullscreen mode you’re telling Kubernetes: 👉 “Make the cluster match what’s defined in this file — create or update as needed.” But under the hood, quite a bit happens. What Actually Happens 1. YAML is Parsed Locally kubectl reads your manifest YAML file and converts it into an API request. Example: Kind: Deployment Name: my-app Spec: replicas, containers, etc. 2.…