<p>I am new to k8s, I am trying to deploy dashboard on Master node(s) and part of the deployment is to launch the metrics-server. Full documentation can be found here (<a href="https://github.com/kubernetes/dashboard" rel="nofollow noreferrer">dashboard</a>/<a href="https://github.com/kubernetes-sigs/metrics-server" rel="nofollow noreferrer">metrics-server</a>).</p>
<p>My question is related to the warning that we can see immediately after deployment:</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl describe pods -n kube-system metrics-server-74d7f54fdc-psz5p
Name:           metrics-server-74d7f54fdc-psz5p
Namespace:      kube-system
Priority:       0
Node:           &lt;none&gt;
Labels:         k8s-app=metrics-server
                pod-template-hash=74d7f54fdc
Annotations:    &lt;none&gt;
Status:         Pending
IP:
IPs:            &lt;none&gt;
Controlled By:  ReplicaSet/metrics-server-74d7f54fdc
Containers:
  metrics-server:
    Image:      my.repo.net/k8s.gcr.io/metrics-server-amd64:v0.3.6
    Port:       4443/TCP
    Host Port:  0/TCP
    Args:
      --cert-dir=/tmp
      --secure-port=4443
    Environment:  &lt;none&gt;
    Mounts:
      /tmp from tmp-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from metrics-server-token-d47dm (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  tmp-dir:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  &lt;unset&gt;
  metrics-server-token-d47dm:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  metrics-server-token-d47dm
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  kubernetes.io/arch=amd64
                 kubernetes.io/os=linux
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason            Age                  From               Message
  ----     ------            ----                 ----               -------
  Warning  FailedScheduling  116s (x49 over 66m)  default-scheduler  0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate.
</code></pre>
<p>After reading other questions e.g. <a href="https://stackoverflow.com/questions/59484509/node-had-taints-that-the-pod-didnt-tolerate-error-when-deploying-to-kubernetes">Node had taints that the pod didn't tolerate error when deploying to Kubernetes cluster</a> and <a href="https://stackoverflow.com/questions/62991596/1-nodes-had-taints-that-the-pod-didnt-tolerate-in-kubernetes-cluster">1 node(s) had taints that the pod didn't tolerate in kubernetes cluster</a> I can understand why this problem occurs, but I am confused as to if we should add our self this torelation on the image e.g. (<a href="https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.3.7" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.3.7</a>):</p>
<pre><code>tolerations:
  - key: &quot;example-key&quot;
    operator: &quot;Exists&quot;
    effect: &quot;NoSchedule&quot;
</code></pre>
<p>If the Master node should be able to collect metrics on him self this parameter should not be added by default? If not then we should deploy the UI on all workers (this does not make any sense).</p>
<p>Maybe someone with more experience on this can share some light?</p>

<p>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:</p>
<ol>
<li>must be reachable from kubeapi-server</li>
<li>Kubelet authorization set properly <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet-authentication-authorization/" rel="nofollow noreferrer">refer this link</a></li>
</ol>
<p>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</p>
<ul>
<li>kubernetes.io/arch=amd64</li>
<li>kubernetes.io/os=linux</li>
</ul>
<p>You can add the labels to the node (if not present) using below command.</p>
<p><code>kubectl label nodes *node-name* kubernetes.io/arch=amd64</code></p>
