Appearance

From kubectl to a running Pod

Trace a single Pod request and learn what each status update tells you about startup.

What you will understand

  • Separate API acceptance from placement and node startup.
  • Read Pod conditions, event reasons, and container state.
  • Tell a running container from a ready Pod and test a local request.

Builds on: Desired state and reconciliation

From a manifest to a running Pod

You run kubectl apply and get a line saying a Pod was created. A second later the Pod still shows Pending. Both outputs can be correct. The first describes the API write; the second describes work the cluster has yet to finish.

A Pod is the unit that Kubernetes places on one node. The API stores its description first. The scheduler then finds a node that meets its requirements and records the assignment. A kubelet on that node observes the assignment and prepares it locally through the runtime. The node must set up the Pod’s execution environment, obtain the image if needed, mount any required volumes, and start the containers. Status updates show what the cluster has observed so far.

Open Inspect the Pod startup to compare the evidence each step leaves behind. Look for the stored object, the assigned node, and the Ready condition as three separate observations.

What did a successful apply do?

An accepted write, a node assignment, and a ready process are three different milestones.

  1. kubectlSubmit the Pod manifest
    API serverThe server validates and persists the Pod.
  2. API serverConfirm the object was saved
    kubectlThe command can return while the Pod has no node.
  3. SchedulerBind the Pod to a worker
    API serverThe assigned node is visible on the Pod object.
Follow the sequence

An accepted write, a node assignment, and a ready process are three different milestones.

One ordinary Pod uses default scheduling; admission and persistence are drawn as one API stage. Frames show responsibilities, not an exact ordering of client receipt and observer actions.

Inspect the Pod startup

Follow the first successful apply of a standalone Pod called path-demo, from the API request through the first Ready report.

1 / 5

From kubectlTo API server

Submit the Pod

kubectl sends the Pod manifest. The API authenticates and authorizes the request and applies its admission and validation checks before storage.

Pod name in the request
Before
Manifest on your machine
After
path-lab/path-demo submitted
Submit the Pod

kubectl sends the Pod manifest. The API authenticates and authorizes the request and applies its admission and validation checks before storage.

This is one possible successful sequence. The timeline is illustrative. Node setup and runtime calls are grouped.

A Pod has a node name and its container is still waiting. Which steps have completed?
Reveal prediction answer

The API record exists and the scheduler has assigned a node. The kubelet still has work to do before it can report Ready.

Observe a replacement Pod with a new UID and compare its node, events, and Ready condition.

Verify startup in the reconciliation lab
Explore another case

Follow the evidence through the API and the node

The small Pod below goes in namespace path-lab. A namespace groups namespaced resources and scopes their names. Save this as path-demo.yaml in a disposable cluster. The manifest documents port 80. nginx starts the listener as part of its own behavior.

apiVersion: v1
kind: Pod
metadata:
  name: path-demo
  namespace: path-lab
  labels:
    app: path-demo
spec:
  containers:
    - name: web
      image: nginx:1.27.5
      ports:
        - containerPort: 80 # Documentation; nginx supplies the listener.
kubectl create namespace path-lab
kubectl apply -f path-demo.yaml
# Node and Pod IP appear only when the relevant work has completed.
kubectl -n path-lab get pod path-demo -o wide -w
# In another terminal, inspect conditions and event reasons.
kubectl -n path-lab describe pod path-demo
kubectl -n path-lab get pod path-demo -o yaml

Read the watch output in the order it appears. A Pod record can exist before its node name appears. A node name tells you the assignment happened. The Pod IP appears after network setup reports it. describe includes conditions, events, and container state. get -o yaml shows the same API object with several fields you did not supply, such as status and metadata.uid. Conditions are named observations, with reasons and messages that explain what a component reported.

What happens after a node is assigned?

The assigned node starts the container and publishes status you can inspect from the API.

  1. API serverExpose the Pod assignment
    Worker kubeletThe kubelet sees that this Pod belongs on its node.
  2. KubeletPrepare storage, network, and image
    Container runtimeThe runtime starts the web process.
  3. KubeletReport container and readiness state
    API serverThe new status is available to kubectl and controllers.
Follow the sequence

The assigned node starts the container and publishes status you can inspect from the API.

Networking and volume implementations are collapsed into local preparation; one container is shown.

Watch a Pod get assigned to a node

Try the next commands after the Pod has a node. wait checks its Ready condition. When the kubelet reports Ready, the cluster considers the Pod ready under its configured checks. logs reads output from the named web container; an idle nginx may produce little output before a request. port-forward then gives you a way to talk to this Pod from your machine. While it runs, open http://127.0.0.1:8080/ in a separate terminal or browser and look for the nginx page.

kubectl -n path-lab wait --for=condition=Ready pod/path-demo --timeout=90s
kubectl -n path-lab logs path-demo -c web --tail=20
# Local access for this named Pod; not a Service or external load balancer.
kubectl -n path-lab port-forward pod/path-demo 8080:80

For contrast, inspect what you can see right after a new submit. A fast cluster can assign a node before your first watch result, so read events if the transition goes by too quickly. The module lab provides another chance to follow startup when a ReplicaSet replaces one of its Pods.

Allow for work that continues after apply

Pending covers multiple stages. A Pod with no node and a FailedScheduling event needs help with placement. A Pod that has a node and a pull error needs help obtaining its image. A Pod can even be Running while its Ready condition is false. When an image is cached and the pull policy permits reuse, startup may have no visible registry download. Read the condition and its reason before inferring which step is slow.

Check your understanding

The API accepted a Pod, and kubectl shows it has a node. The container is still waiting. Which stages have finished?

The write and assignment have happened. Node-level preparation or container startup is still pending. Look at the waiting reason and recent events to see whether the node is pulling an image, preparing a volume, or handling another dependency.

Primary documentation

Go to the source

Reviewed 2026-10-27 · Kubernetes 1.37 · Related local exercise

Search the book

Search loads when you open it.

Keyboard shortcuts

Ctrl + K / ⌘ + K
Search the book
?
Open this guide
Tab / Shift + Tab
Move between controls
Enter / Space
Activate a focused button or disclosure
← / →
Focused visual timeline · previous or next step
Home / End
Focused visual timeline · first or last point
Esc
Close the open dialog or menu