Skip to content

CKS scale uses the cluster offering instead of the node type's offering for capacity and cores/memory #14805

Open

Description

@bhouse-nexthop

problem

Scaling a CKS cluster that has per-node-type offerings (worker / control / etcd) uses the wrong offering in KubernetesClusterScaleWorker:

Path Uses Should use
Capacity check before adding workers (validateKubernetesClusterScaleSizeParameters) cluster offering worker offering (what new workers are deployed with)
Stored cores/memory after a size scale new workers counted at the cluster offering worker offering
Stored cores/memory after an offering scale of a running cluster old offering read from the VMs after they were upgraded, so the totals don't change the node type's offering before the scale

Result: the capacity check passes or fails on the wrong numbers, and the cluster's cores/memory drift from what is deployed.

versions

4.21+ (per-node-type offerings), present on 4.22 and main.

The steps to reproduce the bug

  1. Create a CKS cluster with a cluster offering of 2 vCPU and a worker offering of 4 vCPU.
  2. Scale the cluster size up by 2.
  3. The capacity check plans 2 × 2 vCPU; cores on the cluster grows by 4 instead of 8.

Or: scale only the worker offering of a running cluster; cores/memory stay unchanged.

What to do about it?

Use the node type's offering (falling back to the cluster offering, as VM deployment does) for the capacity check and the cores/memory calculation.

Activity

  1. github-actions commented on Nov 30, 2026

    @github-actions

    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

    KubernetesClusterScaleWorker uses the cluster offering where it should use the node type's offering. The capacity check before adding workers uses the cluster offering, not the worker offering. The stored cores and memory count new workers at the cluster offering, and after an offering scale of a running cluster the old offering is read from VMs that were already upgraded, so the totals do not change. The result is a capacity check on the wrong numbers and cluster totals that drift from what is deployed. The reporter gives a worked example: 2 vCPU cluster offering, 4 vCPU worker offering, scale up by 2, and cores grow by 4 instead of 8.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug Wrong offering used in capacity and totals, with a worked example
    Component component:cks KubernetesClusterScaleWorker
    Severity Severity:Major Capacity decisions and stored resource totals are wrong
    Labels type:bug, component:cks, Severity:Major Based on the issue text
    Coding agent Suitable Fix is specified: use the node type's offering, falling back to the cluster offering as deployment does

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: create a cluster with a cluster offering and a different worker offering, scale by size, then compare cores and memory on listKubernetesClusters.
    • Check the stored totals after an offering-only scale of a running cluster as well.

    Generated by Daily Issue Triage · copilot · haiku55 · ~8 AIC · ⊞ 3.8K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions