Skip to content

CKS: the cloud controller manager never initialises cluster nodes #14764

Open

Description

@bhouse-nexthop

problem

CKS has deployed the CloudStack Kubernetes provider (cloud controller manager) on every cluster since #5254 (2021), but the kubelets are never started with --cloud-provider=external. So the CCM never initialises a node:

expected from the CCM on a CKS cluster today
spec.providerID = external-cloudstack://<vm uuid> empty
topology.kubernetes.io/zone, node.kubernetes.io/instance-type labels missing
node object removed when its VM is destroyed never

LoadBalancer Services still work, because the service controller finds VMs by node name, which is why this went unnoticed.

Just adding the kubelet flag breaks cluster create:

  • every node starts with the node.cloudprovider.kubernetes.io/uninitialized taint, which only the CCM removes
  • CKS deploys the CCM only after it waits for the dashboard, and the dashboard stays Pending on tainted nodes
  • direct-access (shared network) clusters get no CCM, so their nodes would stay tainted
  • the CCM pulled from the provider's main branch (or v1.1.0 in older ISOs) looks up its own pod name as a VM to find the zone

versions

4.22 and main. The kubelet flags in k8s-control-node.yml, k8s-control-node-add.yml and k8s-node.yml have only ever set --cgroup-driver=systemd.

steps to reproduce

  1. Create a CKS cluster on an isolated network.
  2. kubectl get nodes -o jsonpath='{.items[*].spec.providerID}' returns nothing, and there are no zone labels.

Activity

  1. github-actions commented on Nov 26, 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

    CKS deploys the CloudStack cloud controller manager (CCM) on every cluster, but the kubelets are never started with --cloud-provider=external. As a result the CCM never initialises nodes: spec.providerID, the zone and instance-type labels are missing, and node objects are not removed when their VM is destroyed. The reporter notes that simply adding the flag would break cluster creation, because nodes would carry the uninitialized taint before the dashboard that the CCM is deployed after can run.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug Expected CCM behaviour is not happening on CKS clusters
    Component component:cks Kubelet flags in the CKS node templates and CCM deployment order
    Severity Severity:Major Node metadata is missing and stale node objects remain; LB services still work
    Labels type:bug, component:cks, Severity:Major
    Coding agent Needs more info The fix changes taint handling and deploy ordering, and the reporter lists several cases to cover (direct-access clusters, CCM versions)

    🔗 Similar issues

    💡 Notes and suggestions

    Generated by Daily Issue Triage · copilot · haiku55 · ~7 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