I used the metrics-server.yaml attached. I was unable to run it and after some research following are the changes I had to do:
1. added args:- args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-insecure-tls=true
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
2. run kubectl edit deployment metrics-server -n kube-system
and change
dnsPolicy: ClusterFirst
hostNetwork: true