A newcomer runs a command to list the Pods in a cluster and wants to understand what the kubectl tool fundamentally does when it executes that command. Which statement best describes how kubectl interacts with a Kubernetes cluster?
- AIt sends HTTP requests to the cluster's API server, the front end of the control plane, and displays the returned response. Correct
- BIt connects directly to the container runtime on each node and queries running containers without involving the control plane.
- CIt reads the etcd key-value store directly to fetch cluster state, bypassing every intermediate control-plane component.
- DIt carries out scheduling decisions locally and writes desired state onto worker nodes over SSH connections instead.
Why A is correct: Correct: kubectl is a client that issues requests to the Kubernetes API server, which authenticates them, reads or writes state, and returns the result that kubectl formats for the user.
Why B is wrong: Tempting because the output does describe containers, but kubectl never talks to node runtimes directly; it goes through the API server, which is the only supported entry point for cluster operations.
Why C is wrong: Tempting because etcd does hold cluster state, but only the API server is permitted to read and write etcd; clients such as kubectl never access etcd directly.
Why D is wrong: Tempting because kubectl manages workloads, but scheduling is done by the scheduler inside the control plane and kubectl uses the API, not SSH, to reach the cluster.