VCP-VMC 2024 Question 102
Select 3You are deploying a Kubernetes cluster in a VMware Cloud environment and need to ensure proper functionality of the control plane and workload management. Which Kubernetes components are responsible for scheduling, maintaining the desired state of resources, and exposing the API for external interaction?
- A
kube-apiserver
- B
kube-scheduler
- C
etcd
- D
kube-controller-manager
- E
kube-proxy
Show answer and explanation
Correct answers: A, B, D
Explanation
In a Kubernetes cluster, the kube-apiserver serves as the entry point for API calls, ensuring external and internal communication. The kube-scheduler is responsible for scheduling pods to nodes, while the kube-controller-manager ensures the desired state of the cluster's resources is maintained. These components collectively enable the proper functioning of the control plane and workload management.
- A. Correct.
The kube-apiserver is a critical component of the Kubernetes control plane that exposes the Kubernetes API, allowing external and internal components to interact with the cluster. It ensures all other components communicate effectively.
- B. Correct.
The kube-scheduler is responsible for assigning newly created pods to nodes based on resource availability, policies, and constraints.
- C. Incorrect.
etcd is the distributed key-value store used by Kubernetes to store cluster state and configuration. While essential, it does not directly handle scheduling or expose APIs.
- D. Correct.
The kube-controller-manager runs controllers that handle routine tasks like maintaining the desired state of resources such as replicas and endpoints.
- E. Incorrect.
The kube-proxy manages networking for Kubernetes services by maintaining network routing rules. It does not handle scheduling, API interaction, or resource state management.