CONTAINERS / A CONCEPT NOTE

Kubernetes

orchestrating containers at scale

~90 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

A cluster of nodes (servers) managed by a control plane. You declare desired state in YAML — Deployment, Service, ConfigMap — and the control plane drives actual state toward it. Pods are the smallest deployable unit: one or more containers sharing a network namespace.

02 / FOLLOW THE MECHANISM

How a deployment rolls out

  1. You

    run kubectl apply -f deploy.yaml which sends the manifest to the API server.

  2. API server

    validates the manifest and stores it in etcd (the cluster's source of truth).

  3. Controller manager

    notices the Deployment's desired state doesn't match actual state and creates a ReplicaSet.

  4. Scheduler

    picks nodes for each new Pod based on resource requests, taints, and affinity rules.

  5. Kubelet

    on each node receives the Pod spec and tells the container runtime (containerd) to pull images and start containers.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

list every pod across all namespaces

kubectl get pods -A

EXAMPLE 02 · REFERENCE

see events, conditions, and container status

kubectl describe pod POD_NAME

Explore command anatomy in the CLI lab