<p>I just installed <code>metrics-server</code> on my kubernetes cluster running</p>

<pre><code>$ kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.6/components.yaml
</code></pre>

<p>But the pod do not boot and I have the following error </p>

<pre><code>0/4 nodes are available: 4 node(s) didn't match node selector.
</code></pre>

Ajouve
<p>Metrics server have below <code>nodeSelector</code> in the deployment yaml</p>

<pre><code>  nodeSelector:
    kubernetes.io/os: linux
    kubernetes.io/arch: "amd64"
</code></pre>

<p>This error means that there is no node with label <code>kubernetes.io/os: linux</code> and <code>kubernetes.io/arch: "amd64"</code></p>

<p>You can either remove the <code>nodeSelector</code> from the deployment yaml before deploying it or you can add those labels into your nodes.</p>

<pre><code>kubectl label nodes &lt;your-node-name&gt; kubernetes.io/os=linux
kubectl label nodes &lt;your-node-name&gt; kubernetes.io/arch=amd64
</code></pre>
