Kubernetes and Cloud Native Associate (KCNA)Kubernetes FundamentalsMedium
A cluster administrator is examining the `kube-system` namespace and notices a Pod named `kube-controller-manager-node1`. What is the primary role of the `kube-controller-manager` component in a Kubernetes cluster?
- AMonitors the state of the cluster and makes changes to move the current state towards the desired state.
- BProvides DNS resolution for Services and Pods.
- CManages network proxying for Services.
- DStores the cluster's configuration data.
Show answer & explanationAnswer & explanation
Correct answer: A. Monitors the state of the cluster and makes changes to move the current state towards the desired state.
The `kube-controller-manager` runs various controllers that continuously monitor the state of the cluster and make necessary changes to bring the current state closer to the desired state. This includes controllers for Deployments, ReplicaSets, StatefulSets, and more.
Why the other options are wrong
- B. CoreDNS provides DNS resolution.
- C. kube-proxy manages network proxying for Services.
- D. etcd stores the cluster's configuration data.
kube-controller-manager
A control plane component that runs various controller processes, continuously monitoring the cluster's actual state and attempting to move it towards the desired state.
- Runs multiple controllers.
- Monitors actual vs. desired state.
- Reconciles discrepancies (e.g., in Deployments, ReplicaSets).
Memory trick: Controllers manage the cluster's desired state!