metrics-server pod should run on master node(s) or worker node(s)? metrics-server pod should run on master node(s) or worker node(s)? kubernetes kubernetes

metrics-server pod should run on master node(s) or worker node(s)?


Metric server can be deployed into worker node it is not mandatory to be deployed in master node to fetch metric about master server. metric server uses kubeapi-server to fetch the various metrics about the cluster, the requirements for metric server are:

  1. must be reachable from kubeapi-server
  2. Kubelet authorization set properly refer this link

Do you have worker node in your cluster? Is their any taint applied to those nodes? Also as per your deployment yaml node selector has been configured with below values, please make sure that your worker nodes has got these 2 labels

  • kubernetes.io/arch=amd64
  • kubernetes.io/os=linux

You can add the labels to the node (if not present) using below command.

kubectl label nodes *node-name* kubernetes.io/arch=amd64