Reading · 8 minFree preview
A Kubernetes cluster is a control plane that makes decisions and worker nodes that run your Pods.
| Component | Where | Job |
|---|---|---|
kube-apiserver | Control plane | The front door: every request (kubectl, kubelets, controllers) goes through its REST API |
etcd | Control plane | Consistent key-value store holding all cluster state |
kube-scheduler | Control plane | Picks a node for each unscheduled Pod |
kube-controller-manager | Control plane | Runs controllers (Deployment, Node, Job...) that drive actual state towards desired state |
cloud-controller-manager | Control plane (cloud only) | Talks to the cloud for load balancers, routes and node lifecycle |
kubelet | Every node | Starts and watches the containers of Pods assigned to its node, via the container runtime |
kube-proxy | Every node | Programs the node's rules so Service virtual IPs reach Pods |
| Container runtime | Every node | Runs containers through the CRI, for example containerd or CRI-O |
Only the API server talks to etcd. Everything else watches the API server. In a kubeadm cluster the control plane components run as static Pods:
the kubelet reads manifests from /etc/kubernetes/manifests and keeps those Pods running with no API server needed.
$ kubectl get pods -n kube-system
etcd-cp1 1/1 Running
kube-apiserver-cp1 1/1 Running
kube-controller-manager-cp1 1/1 Running
kube-scheduler-cp1 1/1 Running
$ ls /etc/kubernetes/manifests
Exam tip: to change an API server flag in a kubeadm cluster, edit its manifest in /etc/kubernetes/manifests; the kubelet restarts it automatically.
The Docker engine is no longer a supported runtime (dockershim was removed in Kubernetes 1.24); containerd and CRI-O are the standard choices.
Log in to join the discussion.
Log in