You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CKS scale without an offering moves nodes back to the cluster offering #14807
scaleKubernetesCluster without serviceofferingid or nodeofferings still scales nodes to the cluster's service offering.
createNodeTypeToServiceOfferingMap falls back to the cluster offering as DEFAULT when no offering is passed. KubernetesClusterScaleWorker.scaleCluster then treats every node type whose VMs run a different offering as needing an offering scale.
Calls that hit it:
call
effect
clustersize only
worker (and control/etcd) nodes on their own offering are scaled back to the cluster offering
nodeids (e.g. cluster autoscaler removing a node)
same
autoscalingenabled on/off, min/max
control/etcd scaled back before the autoscaler is set up
On KVM with running VMs the offering scale fails with "scaling Kubernetes cluster with running VMs on hypervisor KVM is not supported", sometimes after a downscale already removed nodes. Where live scaling works, nodes are silently moved back to the cluster offering.
versions
4.21, 4.22, main
The steps to reproduce the bug
Create a CKS cluster with nodeofferings giving workers a different offering than serviceofferingid (or scale workers with nodeofferings later).
Call scaleKubernetesCluster with only clustersize.
Scale fails on KVM with the error above, or the workers end up on the cluster offering.
What to do about it?
When no offering is requested, pass an empty offering map so only the size/autoscaling change is applied.
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
scaleKubernetesCluster without serviceofferingid or nodeofferings moves nodes back to the cluster offering. createNodeTypeToServiceOfferingMap falls back to the cluster offering as DEFAULT, so any node type running a different offering appears to need an offering scale. This affects size-only changes, nodeids scale-in (including autoscaler removals), and autoscaling on/off. On KVM the offering scale fails with a running-VM error, sometimes after a downscale has already removed nodes. The proposed fix is to pass an empty offering map when no offering is requested.
📊 Assessment
Dimension
Value
Reasoning
Type
type:bug
A size-only scale changes node offerings, with reproduction steps
Component
component:cks
createNodeTypeToServiceOfferingMap and the scale worker
Severity
Severity:Major
Scale fails partway on KVM, and nodes are resized unintentionally
Labels
type:bug, component:cks, Severity:Major
Based on the issue text
Coding agent
Suitable
Fix is specified: pass an empty map when no offering is requested
Activity
github-actions commentedon Nov 30, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
scaleKubernetesClusterwithoutserviceofferingidornodeofferingsmoves nodes back to the cluster offering.createNodeTypeToServiceOfferingMapfalls back to the cluster offering asDEFAULT, so any node type running a different offering appears to need an offering scale. This affects size-only changes,nodeidsscale-in (including autoscaler removals), and autoscaling on/off. On KVM the offering scale fails with a running-VM error, sometimes after a downscale has already removed nodes. The proposed fix is to pass an empty offering map when no offering is requested.📊 Assessment
createNodeTypeToServiceOfferingMapand the scale worker🔗 Similar issues
nodeidsscale-in can resize unrelated nodes to the legacy offering💡 Notes and suggestions
nodeofferingsfor workers, then callscaleKubernetesCluster clustersize=<n>only.Add this agentic workflow to your repo
To install this agentic workflow, run