Cloud Native 3 min read

How Does a Kubernetes Pod Get Created? Step‑by‑Step Walkthrough

This article walks through the complete Kubernetes pod creation workflow, from submitting the YAML with kubectl to the API server, storing the definition in etcd, scheduling, kubelet orchestration, container runtime delegation, CNI networking, health probing, and endpoint setup for services.

Efficient Ops
Efficient Ops
Efficient Ops
How Does a Kubernetes Pod Get Created? Step‑by‑Step Walkthrough

Pod creation process in Kubernetes

1. kubectl sends the YAML manifest to the API server.

Step 1 diagram
Step 1 diagram

2. The Pod definition is stored in etcd.

Step 2 diagram
Step 2 diagram

3. The scheduler assigns the Pod to a node (the manifest remains in etcd; the node does not yet have the Pod).

Step 3 diagram
Step 3 diagram

4. kubelet on the selected node begins creating the Pod.

Step 4 diagram
Step 4 diagram

5. kubelet delegates container creation to the Container Runtime Interface (CRI).

Step 5 diagram
Step 5 diagram

6. kubelet connects the newly created container to the CNI network.

Step 6 diagram
Step 6 diagram

7. CNI assigns an IP address to the container.

Step 7 diagram
Step 7 diagram

8. Health probes run; kubelet reports the Pod IP back to the control plane.

Step 8 diagram
Step 8 diagram

At this point the Pod is fully created. If the Pod is part of a Service, Kubernetes also creates an endpoint object that links the Pod’s IP and targetPort.

Endpoint creation diagram
Endpoint creation diagram

The endpoint is used by:

kube-proxy to set iptables rules

CoreDNS to update DNS entries

Ingress controllers to configure downstream services

Service meshes

Other operators

Endpoint usage diagram
Endpoint usage diagram

Deleting a Pod follows the same steps in reverse order.

cloud nativeKubernetesETCDCNIkubeletPod LifecycleService endpoint
Efficient Ops
Written by

Efficient Ops

This public account is maintained by Xiaotianguo and friends, regularly publishing widely-read original technical articles. We focus on operations transformation and accompany you throughout your operations career, growing together happily.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.