Werk #19445 · Mar 20, 26
kube_node_count: Fix control-plane node detection with default role name
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
If you set up Kubernetes monitoring with default settings, your control plane
nodes may have been incorrectly counted as worker nodes by the Nodes service
(kube_node_count). This was caused by a typo in the default role name
(control_plane instead of control-plane). Kubernetes has never used the
underscore variant, so the default never matched anything.
The default role list now uses control-plane (hyphen), matching the standard
Kubernetes naming convention. The master role (used by older clusters) remains
in the defaults as well.
If your cluster uses non-standard node role names, you can configure them in the Kubernetes node count ruleset to ensure control plane nodes are counted correctly.
If you have customized this rule, please ensure that the role name you specify matches what your cluster actually uses to identify control-plane nodes. If you have not customized this rule, no action is needed to benefit from this fix.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0b2All Editions
- 2.4.0p26All Editions