Unable to run metrics-server in K8 cluster

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.