Pregunta de Kubernetes Cluster Management #019e3a4f
Kubernetes ___ allows you to automatically manage the number of nodes in your cluster to meet demand.
Node Autoscaler
Cluster Autoscaler
Horizontal Pod Autoscaler
Vertical Pod Autoscaler
Explicación Oficial / Explicaciones de la Comunidad
The Cluster Autoscaler is the Kubernetes component responsible for automatically adjusting the number of nodes in a cluster based on resource demands. It scales up when pods are unschedulable due to insufficient resources and scales down when nodes are underutilized for a configurable period.
How it Works
The Cluster Autoscaler monitors pending pods and node utilization. When pods cannot be scheduled due to resource constraints, it requests additional nodes from the cloud provider (e.g., AWS, GCP, Azure) via the provider's API. Conversely, it identifies nodes with low utilization and no critical workloads, then safely drains and terminates them to reduce costs.
Why the Correct Answer is Right
The Cluster Autoscaler directly manages the number of nodes in the cluster, which matches the question's description of "automatically manage the number of nodes." It operates at the infrastructure level, adding or removing worker nodes as needed.
Why the Incorrect Answers are Wrong
- Node Autoscaler: This is not a standard Kubernetes term. While some cloud providers offer node auto-scaling features (e.g., AWS Auto Scaling Groups), the official Kubernetes component is the Cluster Autoscaler.
- Horizontal Pod Autoscaler (HPA): This scales the number of pod replicas within a deployment, not the number of nodes. It adjusts pod count based on CPU/memory metrics or custom metrics.
- Vertical Pod Autoscaler (VPA): This adjusts resource requests and limits (CPU/memory) for existing pods, not the node count. It recommends or automatically updates pod resource allocations.