Kubernetes and Cloud Native Associate (KCNA)Kubernetes FundamentalsMedium

A cluster administrator is reviewing the architecture of a Kubernetes cluster. They observe that a critical component responsible for storing the cluster's state and configuration data is a highly available, distributed key-value store. Which component are they observing?

  1. Akube-scheduler
  2. Betcd
  3. Ckube-controller-manager
  4. Dkube-apiserver
Show answer & explanation

Correct answer: B. etcd

`etcd` is the distributed key-value store that Kubernetes uses to persistently store all cluster data, including configuration, state, and metadata. Its high availability is crucial for cluster reliability.

Why the other options are wrong

  • A. The `kube-scheduler` is responsible for placing Pods on nodes, not storing cluster state.
  • C. The `kube-controller-manager` runs various controllers that manage the cluster's desired state, but it does not store the state itself.
  • D. The `kube-apiserver` exposes the Kubernetes API and is the front-end for the control plane, but it doesn't store the data itself; it interacts with `etcd`.

etcd

etcd is a distributed, consistent, and highly available key-value store used by Kubernetes to store all cluster data.

  • Stores cluster state, configuration, and metadata.
  • Crucial for Kubernetes control plane operation.
  • Requires high availability for cluster resilience.
  • Communicates with `kube-apiserver`.

Memory trick: API is the front, Scheduler picks, Controller acts, etcd stores it all.

More Kubernetes Fundamentals questions