{
  "id": 10043077,
  "title": "What Actually Happens When You Run kubectl apply",
  "url": "https://urgent.news/2026/09/26/what-actually-happens-when-you-run-kubectl-apply",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-26T18:58:06.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/muskan_bandta/what-actually-happens-when-you-run-kubectl-apply-3c04"
  },
  "original_language": "en",
  "account": "When you execute the command \"kubectl apply -f deployment.yaml\", Kubernetes creates an API request on your machine after parsing and validating the YAML file. This request must be authenticated and authorized by the API server, otherwise it will be rejected with a \"forbidden\" error. Admission controllers may further validate or modify the request, and then the object is stored in etcd, representing the desired state. The controllers monitor for discrepancies between the desired and actual state, creating objects like ReplicaSets and Pods to match the desired state. The scheduler assigns these Pods to worker nodes based on resource availability and constraints. The kubelet on each node pulls the container images and starts the containers. Probes such as liveness and readiness determine when the Pod receives traffic. Understanding this entire process enables effective debugging of common Kubernetes issues, as each error typically corresponds to a specific step in this journey.",
  "summary": "You type kubectl apply -f deployment.yaml , it says created , and a few seconds later your app is running. It feels like magic, and because it feels like magic, most people never learn what happens in between, which is exactly the knowledge that makes Kubernetes debugging possible. Let me trace the whole journey from your terminal to a running pod, step by step. Once you can follow this path,…",
  "key_points": [
    "kubectl apply parses and validates YAML file",
    "API server authenticates and authorizes request",
    "Controllers manage discrepancy between desired and actual state"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}