Pcornel
Containers

Kubernetes Architecture

Cheat sheet · https://pcornel.dk/topic.php?topic=6079

Back to the Topic

Answer

Kubernetes architecture: a control plane (kube-apiserver, etcd, scheduler, controller-manager) stores desired state and reconciles it; worker nodes run kubelet, a container runtime and kube-proxy/CNI to run pods.

Remember

Everything goes through the API server. Desired state in etcd → controllers act → scheduler places pods → kubelet runs them. Check events first; they tell you which step failed.

First checks

  • kubectl get nodes — first check for this topic
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl logs <pod> [-c <c>] [--previous] — container logs (incl. previous crash)
  • kubectl get events --sort-by=.lastTimestamp — recent cluster events

Verify in this order

kubectl → API server → etcd → controllers/scheduler → kubelet → runtime → pod

Where it usually breaks

Architecture-level failures include API/control-plane unavailability, etcd/state issues, controllers that cannot reconcile, unschedulable work, node/kubelet problems and treating an accepted manifest as proof that workload state converged.

Kubernetes Architecture verification boundary matrix

BoundaryInspectHealthy interpretationDo not infer
IntentCluster architectureIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeControl plane / Worker nodesOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateAPI serverIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeetcd responsibility boundaryThe original bounded check succeeds in the same time windowProduction correctness outside this scope

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6079

Confirmation

Confirm action

Continue?