KCNA · Question #151
What is the API that exposes resource metrics from the metrics-server?
The correct answer is C. metrics.k8s.io. The Kubernetes metrics-server exposes core resource metrics (CPU and memory usage for nodes and pods) through the metrics.k8s.io API group. This API is used by the Horizontal Pod Autoscaler (HPA) and the kubectl top command. custom.k8s.io (A) is not a standard Kubernetes API…
Question
What is the API that exposes resource metrics from the metrics-server?
Options
- Acustom.k8s.io
- Bresources.k8s.io
- Cmetrics.k8s.io
- Dcadvisor.k8s.io
How the community answered
(26 responses)- A8% (2)
- C88% (23)
- D4% (1)
Explanation
The Kubernetes metrics-server exposes core resource metrics (CPU and memory usage for nodes and pods) through the metrics.k8s.io API group. This API is used by the Horizontal Pod Autoscaler (HPA) and the kubectl top command. custom.k8s.io (A) is not a standard Kubernetes API. resources.k8s.io (B) does not exist as a metrics API. cadvisor.k8s.io (D) is not a valid API group - cAdvisor is an underlying component that collects metrics, but it is not exposed directly via that API group name.
Topics
Community Discussion
No community discussion yet for this question.