KCNA · Question #101
What is the main purpose of etcd in Kubernetes?
The correct answer is A. etcd stores all cluster data in a key value store. etcd serves as Kubernetes' consistent and highly available key-value store, storing all cluster data, including configuration, state, and metadata, ensuring a single source of truth for the cluster.
Question
What is the main purpose of etcd in Kubernetes?
Options
- Aetcd stores all cluster data in a key value store.
- Betcd stores the containers running in the cluster for disaster recovery.
- Cetcd stores copies of the Kubernetes config files that live /etc/.
- Detcd stores the YAML definitions for all the cluster components.
How the community answered
(29 responses)- A93% (27)
- C3% (1)
- D3% (1)
Why each option
etcd serves as Kubernetes' consistent and highly available key-value store, storing all cluster data, including configuration, state, and metadata, ensuring a single source of truth for the cluster.
etcd is the primary backing store for all Kubernetes cluster data, encompassing the state of Pods, Deployments, Services, ConfigMaps, Secrets, network configurations, and all other API objects, which is crucial for the cluster's operation and state management.
etcd stores the *state* of containers and other resources, but not the actual container images or binaries themselves for disaster recovery; those are handled by image registries and node file systems.
etcd stores live cluster state, not copies of local configuration files from `/etc/` on nodes; those local files are for the configuration of local components.
While etcd stores the definitions (like YAML objects converted to API objects), it stores much more than just YAML definitions, encompassing the entire operational state and metadata of the cluster in a programmatic format.
Concept tested: etcd role in Kubernetes
Source: https://kubernetes.io/docs/concepts/overview/components/#etcd
Topics
Community Discussion
No community discussion yet for this question.