Scaling worker nodes for Gitlab Ci with Kubernetes

Viewed 21

I'm using Gitlab for my CI, and some of my builds are quite heavy (e.g. cross-compiling an entire Linux distro with Yocto, which will take a good half hour on a decent server). Until then I was using a dedicated server for my builds, but I'd like to setup something that scales better.

I have been thinking about using Kubernetes, as this is supported by Gitlab. But it seems I would also need to use Terraform or something similar if I want to be able to scale the number of nodes, right ? I want to be able to scale down to 0 worker nodes when no build is in progress, and scale up when I have several builds going on at the same time.

Before I go down the rabbit hole of learning about Kubernetes and Terraform (that is something I would love to do, but my background is more on embedded Linux), does that seem like the right solution ?

Thanks in advance, Antoine

0 Answers
Related