Werk #20158 · Jun 29, 26
Kubernetes Nodes service: Correctly count nodes that are both control plane and worker nodes
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
The Nodes service on the Kubernetes source host did not correctly count worker nodes that are also control plane nodes.
Previously, the logic was an either-or: A node was either a control plane or a worker node, based on whether or not it had a control plane role.
With this change, nodes serving both roles can be correctly counted if they both have respective node roles.
By default, the roles that the check looks for are:
- control plane:
control-plane,master - worker:
worker
This set of roles is configurable in the Kubernetes node count rule set with the ability to select worker roles being introduced with this change.
A node with any control plane role is counted as a control plane (as before).
A node which does not have any control plane role is counted as a worker node (as before).
A node with any worker role is now counted as a worker node while possibly also being counted as a control plane node (this change).
We mark this Werk as incompatible as users who have set levels on the number of worker nodes might need to re-evaluate those levels.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p10All Editions
- 2.4.0p35All Editions