bhouse-nexthop opened a new issue, #14764:
URL: https://github.com/apache/cloudstack/issues/14764
### 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]