Kubernetes Architecture
medium

Questão de Kubernetes Architecture #019e3a4f

Enunciado da Questão
Kubernetes Architecture
#kubernetes
#control-plane
#kube-apiserver
#api
Médio

What Kubernetes control plane component exposes the programmatic interface used to create, manage and interact with the Kubernetes objects?

A

kube-controller-manager

B

kube-proxy

C

kube-apiserver

Correta
D

etcd

Explicação Oficial / Explicações da Comunidade

The Kubernetes API server (kube-apiserver) is the front-end of the Kubernetes control plane. It exposes the Kubernetes API, which is the programmatic interface used to create, manage, and interact with all Kubernetes objects (pods, services, deployments, etc.). All administrative operations and internal components communicate with the API server via RESTful calls.

How it Works

The kube-apiserver validates and processes REST requests, then updates the corresponding objects in etcd, the cluster's key-value store. It is the only component that directly interacts with etcd. Other control plane components, such as the kube-controller-manager and kube-scheduler, watch the API server for changes and react accordingly.

Why the Correct Answer is Right

The kube-apiserver is the sole entry point for all management operations. Without it, no Kubernetes objects can be created or modified. It authenticates, authorizes, and processes every API request.

Why the Incorrect Answers are Wrong

  • kube-controller-manager: This component runs controller processes that regulate the state of the cluster (e.g., node controller, replication controller). It does not expose an API; instead, it watches the API server for desired state changes and makes adjustments.
  • kube-proxy: This is a network proxy that runs on each node, maintaining network rules for service connectivity. It does not provide a programmatic interface for object management.
  • etcd: This is a distributed key-value store used for cluster data persistence. While it stores all Kubernetes objects, it is not the interface for creating or managing them. The API server is the only component that reads from and writes to etcd.