0

I just installed metrics-server on my kubernetes cluster running

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

But the pod do not boot and I have the following error

0/4 nodes are available: 4 node(s) didn't match node selector.
Ajouve
  • 9,735
  • 26
  • 90
  • 137

1 Answers1

4

Metrics server have below nodeSelector in the deployment yaml

  nodeSelector:
    kubernetes.io/os: linux
    kubernetes.io/arch: "amd64"

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

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

kubectl label nodes <your-node-name> kubernetes.io/os=linux
kubectl label nodes <your-node-name> kubernetes.io/arch=amd64
Ajouve
  • 9,735
  • 26
  • 90
  • 137
Arghya Sadhu
  • 41,002
  • 9
  • 78
  • 107