metrics-server of GCP GKE Kubernetes is not able to fetch pod metrics

2.2k views Asked by At

I run a small Kubernetes cluster on the managed Google Kubernetes Engine (GKE) service. I didn't to any further changes, except from deploying three simple deployments. So I assumed that everything, including metrics, works out of the box. Unfortunately, when I filter for metric-server, I see a lot of errors in stackdriver that do not seem right.

Does somebody know where these are coming from, what impact they have and how to fix it (although I would assume Google needs to fix I, since I pay for GKE :D ).

Thanks in advance.

GKE Kubernets GCP logs

1

There are 1 answers

1
Arghya Sadhu On

Edit the metrics-server-deployment and add:

command:
    - /metrics-server 
    - --kubelet-preferred-address-types=InternalIP
    - --kubelet-insecure-tls

Note that this not a very good solution from security standpoint.