Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

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

Open
Vad1mo opened this issue Apr 22, 2021 · 1 comment
Open

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

Vad1mo opened this issue Apr 22, 2021 · 1 comment

Comments

@Vad1mo
Copy link

Vad1mo commented Apr 22, 2021

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
@dhiltgen
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants