From 4cb6bc9ec42a5edcf1c8d64a6b548c15f71d2b95 Mon Sep 17 00:00:00 2001 From: ahmza Date: Thu, 3 Sep 2026 02:00:24 +0100 Subject: [PATCH] Persist worker and Longhorn node labels --- talos/patch-worker.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/talos/patch-worker.yaml b/talos/patch-worker.yaml index d0dc086..9c5df66 100644 --- a/talos/patch-worker.yaml +++ b/talos/patch-worker.yaml @@ -15,7 +15,15 @@ # Both VMs use `ens18`. Their DHCP-reserved MAC addresses keep worker01 at # 10.10.10.203 and worker02 at 10.10.10.204 while DHCP supplies their gateway # and DNS settings. +# +# `nodeLabels` makes the worker role visible in `kubectl get nodes` and tells +# Longhorn that these two nodes—and only these two—may create a default disk. +# apps/longhorn/values.yaml enables this opt-in behavior so the Raspberry Pi +# control planes never fall back to their small system disks. machine: + nodeLabels: + node-role.kubernetes.io/worker: "" + node.longhorn.io/create-default-disk: "true" install: disk: /dev/sda image: factory.talos.dev/metal-installer/88d1f7a5c4f1d3aba7df787c448c1d3d008ed29cfb34af53fa0df4336a56040b:v1.13.8