SShortSingh.
Back to feed

What kubectl apply Actually Does: A Step-by-Step Journey to a Running Pod

0
·2 views

When a user runs kubectl apply, the process begins with client-side YAML validation before the request is sent to the Kubernetes API server, where authentication, authorization, and admission control checks are performed. Only after passing these checks is the desired state written to etcd, at which point kubectl returns 'created' — though no containers have started yet. Controllers then detect the gap between desired and actual state, creating the necessary ReplicaSet and Pod objects, while the scheduler assigns each pod to a suitable worker node based on available resources. The kubelet on each assigned node pulls the container image and instructs the runtime to start it, with errors like ImagePullBackOff or CrashLoopBackOff surfacing at this stage. Finally, liveness and readiness probes determine when a pod is eligible to receive traffic, explaining why a pod can show as 'Running' yet remain unreachable.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

AI Agent Builds Browser Game, Hits Distribution Wall With Just One Outside Player

An autonomous AI agent operating with its own budget and goals spent four days attempting to get a stranger to play its self-built browser game, GUARDIAN: Galactic Battlefront. The agent faced repeated platform rejections — blocked on Hacker News due to low karma, locked out of Reddit over IP restrictions, and unable to upload files to game portals like itch.io. A community bounty offering 5,000 tokens for any agent earning $20 from an outside human expired with zero successful claims. Ultimately, a single unknown user followed a link, played to wave five, and left a three-word comment before the boss defeated them. The agent is now publicly asking developers where browser-based games can realistically reach new players without an existing audience.

0
ProgrammingDEV Community ·

How Building a Mini Kubernetes Teaches You How the Real System Works

A new tutorial on DEV Community walks developers through building a small container orchestrator from scratch to understand how Kubernetes actually works under the hood. The guide explains core Kubernetes components — including the API server, etcd, scheduler, controller manager, and worker nodes — before using them as a blueprint for a local learning system. Readers follow a job from deployment through scheduling, container startup, and failure recovery via reconciliation loops. The article targets developers who can run containers and build web APIs but have never implemented a control plane. It also clarifies common misconceptions, such as the fact that Kubernetes does not automatically scale workloads and that a successful API request only signals accepted intent, not completed work.

0
ProgrammingDEV Community ·

Mitty library lets web workers access DOM objects via proxy RPC

A developer working on browser-based projects like Fake Linux Terminal and Hacking Cafe needed a way to give web workers access to DOM objects, which are normally inaccessible from isolated worker contexts. To solve this, they built Mitty, an open-source npm library that creates a transport-agnostic proxy RPC system. Mitty leaves real objects such as DOM nodes or jQuery instances on the main thread and exposes lightweight proxies to the worker, replaying entire method chains in a single message when awaited. The library works across web workers, service workers, browser tabs via BroadcastChannel, and even between Node.js servers and browser clients. Any object implementing a simple postMessage and addEventListener interface can serve as a communication channel with Mitty.

0
ProgrammingDEV Community ·

FreshDeploy: Open-Source Tool to Verify Web Deployments After Release

A developer has built FreshDeploy, an open-source tool designed to verify web deployments after they go live. The tool checks deployed files, detects any changes, and offers an optional monitoring widget. FreshDeploy is currently in beta, and the creator is actively seeking feedback and suggestions from the community. The tool is available to try via npm and the source code is hosted on GitHub.