Scaling machines with CAPH #1222
-
I spent the last couple of days to try out this Cluster API provider and I'm very happy that such a project exists for Hetzner Cloud – thanks a lot for creating it! One question I have is related to scaling, as I couldn't find anything about it in this project's documentation. According to the Cluster API docs, I should be able to manually scale my scaling up kubectl scale machinedeployment foo --replicas=5 When I do that, I see that a new I also took a look at So, which mechanism / controller takes influence on this? What's the proper way to scale manually or, bonus question: does the autoscaler work as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello, the cluster-api is responsible for scaling machines. As a user, you interact with the machinedeployment or another high-level API Object (e.g cluster). I would suggest to directly edit the machinedeployment field replicas and check again if this solves your issue. And yes, cluster-autoscaler works fine, we use it extensively. |
Beta Was this translation helpful? Give feedback.
Hello, the cluster-api is responsible for scaling machines. As a user, you interact with the machinedeployment or another high-level API Object (e.g cluster).
The machinedeployment then sizes the machineset. The machineset creates machine objects and then the machinecontroller uses the ProviderMachineTemplate to create ProviderMachine objects. The ProviderMachine objects (e.g. hcloudMachine) are then reconciled by caph.
I have never tried to scale a machine deployment using kubectl scale. In our product "Syself Autopilot", all the scaling is done by changing the cluster object as we use the clusterclass feature of capi for our Kubernetes platform.
I would suggest to directly edit the mach…