kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# check the pods on the kube-system namespace
# edit the deploykubectl -n kube-system edit deploy/metrics-server
# add the following in spec.templates.spec.containers.args--kubelet-insecure-tls--kubelet-preferred-address-type=InternalIP,ExternalIP,Hostname
# check the logs of the metrics-server pod should say "generating selfsigned cert"
# test the metric outputkubectl top pods --all-namespace