HR cluster administrators find that kubectl top nodes and kubectl top pods error, and HPA cannot obtain resource metrics. What is the usual fix?
Select an answer to reveal the explanation.
Short Explanation
When top and HPA go blind, the cluster is usually missing its metrics-server eyeballs. Install or fix that addon and the Metrics API lights back up.
Full Explanation
metrics-server implements the resource Metrics API used by kubectl top and by HPAs that scale on CPU/memory. Errors from those tools commonly mean metrics-server is absent or unhealthy. CoreDNS alternatives, ExternalName Services, and hostNetwork do not restore the Metrics API for top and HPA.