'kubectl top' and Horizontal Pod Autoscalers Don't Work

When using kURL with Metrics Server, if you happen to install into an environment where you don’t have full blown DNS set up, metrics will not be accessible, and HPA’s will not function.

The solution is to run kubectl edit deploy metrics-server -n kube-system and add the following to the args:

- --kubelet-preferred-address-types=InternalIP

Save that, and wait a few minutes, and the metrics will flow.

1 Like