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: cluster offering stays stale after every node type is scaled to the same offering #14822
When a CKS cluster is scaled with per node type offerings (nodeofferings), the control, worker and etcd offerings are updated but the cluster's serviceofferingid is not. listKubernetesClusters (and the UI) keep showing the offering the cluster was created with, even after every node has moved to a new one. The UI scale dialog hides the cluster-wide offering field in per node type mode, so there is no way to fix it from there.
This is the part of #14702 where every node type ends up on one offering, so the cluster offering is run by no node at all. When node types stay on different offerings, the cluster offering is still the fallback for types without their own, so it is left alone here.
step
serviceofferingid
controlofferingid
workerofferingid
create with serviceofferingid=A
A
-
-
scale with nodeofferings control=B, worker=B
A (stale)
B
B
versions
4.21 and later (per node type offerings), including 4.22.
The steps to reproduce the bug
Create a CKS cluster with serviceofferingid=A.
Scale it with nodeofferings[0].node=control, nodeofferings[0].offering=B, nodeofferings[1].node=worker, nodeofferings[1].offering=B.
listKubernetesClusters id=<cluster>: serviceofferingid is still A, while all nodes run on B.
What to do about it?
After a node type's offering is stored, if every node type that has nodes is on the same offering, set the cluster offering to it. If they differ, leave it as is, since node types without an offering of their own still use the cluster offering.
Activity