cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 2432c779e9503a256d72b09b9766950806a8e04d
parent 66f073df4977dedd2ac1e7d0795de22b1deb3071
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Sun, 29 Mar 2026 17:14:27 +0200

dont have binfmt on the control plane

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Mapps/talos_cluster/image-builder/binfmt-daemonset.yaml | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/apps/talos_cluster/image-builder/binfmt-daemonset.yaml b/apps/talos_cluster/image-builder/binfmt-daemonset.yaml @@ -1,5 +1,6 @@ -# Registers QEMU x86_64 binfmt_misc handler on every arm64 node so that +# Registers QEMU x86_64 binfmt_misc handler on worker nodes so that # buildkitd can transparently cross-compile linux/amd64 images. +# Runs on workers only — control-plane nodes are excluded via nodeAffinity. # # tonistiigi/binfmt uses the kernel "F" (fixed-binary) flag, meaning the # QEMU binary fd is held by the kernel and persists even if this pod restarts. @@ -20,9 +21,14 @@ spec: labels: app: binfmt spec: - # Run as quickly as possible on every node (including control-plane) - tolerations: - - operator: Exists + # Only worker nodes run builds — no need for binfmt on control plane + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: DoesNotExist initContainers: - name: binfmt-install image: tonistiigi/binfmt:latest