buildkit-cli-for-kubectl icon indicating copy to clipboard operation
buildkit-cli-for-kubectl copied to clipboard

2 node(s) didn't match Pod's node affinity.

Open Vad1mo opened this issue 4 years ago • 1 comments

I updated to latest version 0.1.3 and tried to run a build.

However I get the error message ' 2 node(s) didn't match Pod's node affinity.'

becasue of this pod anti affinity

podAntiAffinity:
  requiredDuringSchedulingIgnoredDuringExecution:
    - labelSelector:
        matchLabels:
          app: buildkit
          rootless: 'false'
          runtime: docker
          worker: ''
      topologyKey: kubernetes.io/hostname

Vad1mo avatar Apr 22 '21 14:04 Vad1mo

Can you provide a little more detail about your environment? How many nodes? (I'm assuming 2 from the output above.) How many replicas were you trying to run? (I'm guessing 1). Did you have another builder already deployed under a different name?

We currently have AntiAffinity set up to make sure the builder pods distribute across the nodes in a multi-node cluster.

dhiltgen avatar Apr 29 '21 18:04 dhiltgen