1. Cluster Architecture
- Control plane = kube-apiserver, etcd, kube-scheduler, kube-controller-manager (+ optional cloud-controller-manager).
- Every node = kubelet, kube-proxy, container runtime (CRI: containerd or CRI-O).
- Only the API server talks to etcd; everything else watches the API server.
- Kubernetes is declarative: spec = desired state, status = observed state, controllers reconcile in a loop.
- Request path: AuthN → AuthZ → mutating admission → validation → validating admission → etcd.
- etcd needs a quorum: 3 members tolerate 1 failure, 5 tolerate 2.
15 key terms
- Control plane
- The set of components (API server, etcd, scheduler, controller managers) that manage the cluster’s desired state.
- kube-apiserver
- The REST front end of Kubernetes; authenticates, authorizes, admits and persists every request. The only component that talks to etcd.
- etcd
- Consistent, distributed key-value store (Raft) that holds all cluster data.
- kube-scheduler
- Assigns newly created Pods to nodes by filtering and scoring candidate nodes.
- kube-controller-manager
- Runs the built-in controllers that reconcile actual state with desired state.
- cloud-controller-manager
- Runs cloud-provider-specific controllers (load balancers, routes, node lifecycle).
- kubelet
- Agent on each node that ensures containers described in PodSpecs are running and healthy.
- kube-proxy
- Per-node component that maintains network rules implementing Services.
- Container runtime
- Software that runs containers; Kubernetes talks to it through the CRI (e.g. containerd, CRI-O).
- Reconciliation loop
- Observe → diff → act, repeated forever by controllers to converge actual state to desired state.
- spec vs status
- spec is the desired state you declare; status is the observed state written by the system.
- Static Pod
- A Pod managed directly by the kubelet from a local manifest file, not via the API server/scheduler.
- Admission controller
- Plugin that intercepts API requests after authn/authz to mutate or validate (accept/reject) objects.
- Quorum
- Majority of etcd members ((n/2)+1) required to commit writes.
- CRD
- CustomResourceDefinition: extends the Kubernetes API with your own resource kinds.