Can we set node labels per pool, and why do some labels not propagate?
Yes, you can set node labels per node pool. A label that is not propagating is in a domain that does not reach the node. Only labels in these domains are copied from the pool to its nodes:
node-role.kubernetes.ionode-restriction.kubernetes.ionode.cluster.x-k8s.io
A label in any other domain, such as workload: gpu or mycompany.com/tier: critical, does not reach the nodes, and no error is shown.
Set the labels under metadata.labels on the pool's machineDeployments entry in the Cluster topology, for example node-role.kubernetes.io/gpu: "". In the Cluster Configurator this is the labels field of the pool.
Every node the pool creates carries the label, also after a replacement or an upgrade, so your pods can select the pool with a node selector. A label added with kubectl label node is lost when the node is replaced.
Syself Autopilot already labels every node with its hardware, for example autopilot.syself.com/machine-type with the value baremetal or hcloud. Check Platform labels and annotations before you add your own.
Follow Label nodes and assign roles for the steps and a full example. Taints are set on the pool in the same way: see Can we set taints and tolerations per worker pool?
Related questions
