Kubernetes and Cloud Native Associate (KCNA)Kubernetes FundamentalsHard
A security auditor is reviewing a Kubernetes cluster's architecture. They are particularly interested in the component responsible for storing the cluster's configuration data, state, and metadata, which acts as the 'source of truth' for the entire cluster. Which Kubernetes control plane component fulfills this role?
- Aetcd
- Bkubelet
- Ckube-controller-manager
- Dkube-scheduler
Show answer & explanationAnswer & explanation
Correct answer: A. etcd
etcd is a distributed key-value store that serves as Kubernetes' backing store for all cluster data. It stores the cluster's configuration, state, and metadata, making it the single source of truth for the entire Kubernetes cluster.
Why the other options are wrong
- B. The kubelet is an agent that runs on each Node and ensures containers are running in a Pod.
- C. The kube-controller-manager runs various controllers that regulate the cluster's state.
- D. The kube-scheduler assigns Pods to Nodes based on resource requirements and other constraints.
etcd
A distributed, consistent, and highly-available key-value store used by Kubernetes as its backing store for all cluster data (configuration, state, metadata). It is the single source of truth for the cluster.
- Stores all Kubernetes cluster data.
- Distributed and highly available.
- Crucial for cluster state persistence and consistency.
Memory trick: API is the Gateway, Scheduler Schedules, Controller Controls, etcd is the Eternal Data.