feat: label nodes with the node profile they joined with

Node profiles controlled how a node joined the cluster but left no trace on the node afterwards, so a profile could not be selected against with `kubectl`, a `nodeSelector`, or a node affinity rule. Nodes joined without a profile are left unlabeled, and the server node created by `scheduler-k3s:initialize` never carries the label since it does not pass through `scheduler-k3s:cluster:add`.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-08-07 02:32:34 -04:00
1 parent 8e17eee653
commit f050726f1a
5 files changed
+117 -4

No files matched your search

+3
View File
@@ -231,6 +231,9 @@ type NodeProfile struct {
KubeletArgs []string `json:"kubelet_args,omitempty"`
}
// NodeProfileLabel is the node label recording the node profile a node was added with
const NodeProfileLabel = "dokku.com/node-profile"
// ServerLabels are the labels for a server node
var ServerLabels = map[string]string{
"svccontroller.k3s.cattle.io/enablelb": "true",