yk8s.node-scheduling
Note
Nodes get their labels and taints during LCM rollout. Once a node has joined the cluster, its labels and taints can only be changed or new ones be added. Removal is currently not supported.
More details about the labels and taints configuration can be found here.
yk8s.node-scheduling.labels
Labels are assigned to a node during LCM rollout only!
Type::
attribute set of list of non-empty string
Default::
{ }
Example::
{
managed-k8s-worker-0 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true"
];
managed-k8s-worker-1 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/monitoring=true"
];
managed-k8s-worker-2 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true"
];
managed-k8s-worker-3 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/monitoring=true"
];
managed-k8s-worker-4 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true"
];
managed-k8s-worker-5 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/monitoring=true"
];
}
Declared by https://gitlab.com/yaook/k8s/-/tree/devel/nix/yk8s/node-scheduling.nix
yk8s.node-scheduling.scheduling_key_prefix
Scheduling keys control where services may run. A scheduling key corresponds to both a node label and to a taint. In order for a service to run on a node, it needs to have that label key. The following defines a prefix for these keys
Type::
string
Default::
"scheduling.mk8s.cloudandheat.com"
Declared by https://gitlab.com/yaook/k8s/-/tree/devel/nix/yk8s/node-scheduling.nix
yk8s.node-scheduling.taints
Taints are assigned to a node during LCM rollout only!
Type::
attribute set of list of non-empty string
Default::
{ }
Example::
{
managed-k8s-worker-0 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true:NoSchedule"
];
managed-k8s-worker-2 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true:NoSchedule"
];
managed-k8s-worker-4 = [
"\${config.yk8s.node-scheduling.scheduling_key_prefix}/storage=true:NoSchedule"
];
}
Declared by https://gitlab.com/yaook/k8s/-/tree/devel/nix/yk8s/node-scheduling.nix