buildkit-cli-for-kubectl
buildkit-cli-for-kubectl copied to clipboard
2 node(s) didn't match Pod's node affinity.
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
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.