Repository navigation
Connect the CloudStack CCM to CKS nodes - #14765
Open
bhouse-nexthop wants to merge 1 commit into
Open
bhouse-nexthop wants to merge 1 commit into
bhouse-nexthop wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14765 +/- ##
=========================================
Coverage 18.32% 18.32%
- Complexity 16644 16652 +8
=========================================
Files 5939 5939
Lines 537787 537807 +20
Branches 65932 65935 +3
=========================================
+ Hits 98544 98561 +17
- Misses 428033 428035 +2
- Partials 11210 11211 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CKS has deployed the CloudStack cloud controller manager since 2021 but never started the kubelets with --cloud-provider=external, so the CCM never initialised a node (no providerID, zone or instance-type labels, no cleanup of deleted VMs). - Kubelet: add `--cloud-provider=external` and `--node-ip` on control and worker nodes, only for clusters that get the CCM (not direct-access networks) - Opt-in per zone with `cloud.kubernetes.cluster.external.cloud.provider.enabled` (default false): ISOs built before provider v1.1.0 can't schedule the CCM on tainted nodes, and the CCM has to reach endpoint.url - Existing clusters: the flag is gated on a new `externalCloudProvider` cluster detail set at create time, so scaling or upgrading a cluster created earlier keeps its nodes as they were - Create: deploy the CCM as soon as the kube-config is available, before waiting for the dashboard, since add-ons stay Pending until the CCM clears the uninitialized taint; a failed deploy now fails the create - Cloud config: pass the zone name, so the CCM doesn't look up its own pod name as a VM to find the zone - Pin the provider manifest to the v1.3.0 release in deploy-provider and the binaries ISO builder instead of pulling `main`, and set the image to v1.3.0 (the release manifest still names the v1.2.0 image) Signed-off-by: Brad House <bhouse@nexthop.ai>
bhouse-nexthop
force-pushed
the
cks-ccm-external
branch
from
November 22, 2026 21:00
125a4d3 to
9178707
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #14764
CKS deploys the CloudStack cloud controller manager but never starts the kubelets with
--cloud-provider=external, so the CCM never initialises a node: no providerID, no zone or instance-type labels, and no cleanup of deleted VMs. This connects them, opt-in.--cloud-provider=externaland--node-ipon control and worker nodescloud.kubernetes.cluster.external.cloud.provider.enabled, zone scope, defaultfalseexternalCloudProvidercluster detail, set at create time; scale, add-node and upgrade of older clusters keep their nodes as they weredeploy-providerand the binaries ISO builder pin the v1.3.0 release manifest instead ofmain, and set the image to v1.3.0 (the release manifest still names v1.2.0)Why opt-in: ISOs built before provider v1.1.0 cannot schedule the CCM on tainted nodes, and the CCM has to reach
endpoint.urlbefore cluster DNS runs. That needs an IP address there, or a provider manifest withhostNetwork(apache/cloudstack-kubernetes-provider#118). Otherwise new nodes stay unschedulable.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
Unit tests:
KubernetesCluster*Testin the plugin pass, including 3 new ones inKubernetesClusterActionWorkerTest.Lab: a nested KVM lab (3 hosts, Ceph RBD). It runs a main (24.0.0-SNAPSHOT) build with this commit picked on top, so it has not been run on a 4.22 build. Kubernetes v1.33.13. The ISO was built with
create-kubernetes-binaries-iso.shand the provider manifest from apache/cloudstack-kubernetes-provider#118 (hostNetwork,dnsPolicy: Default).endpoint.urlis an IP address.--cloud-provider=external --node-ip=<ip>; the CCM initialised all nodes; uninitialized taint cleared; InternalIP, providerID, zone and instance-type set; create finished RunningHow did you try to break this feature and the system with this change?